git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
KVM: PPC: Use now shadowed vcpu fields
[safe/jmp/linux-2.6]
/
arch
/
powerpc
/
include
/
asm
/
kvm_host.h
diff --git
a/arch/powerpc/include/asm/kvm_host.h
b/arch/powerpc/include/asm/kvm_host.h
index
119deb4
..
5a83995
100644
(file)
--- a/
arch/powerpc/include/asm/kvm_host.h
+++ b/
arch/powerpc/include/asm/kvm_host.h
@@
-66,7
+66,7
@@
struct kvm_vcpu_stat {
u32 dec_exits;
u32 ext_intr_exits;
u32 halt_wakeup;
u32 dec_exits;
u32 ext_intr_exits;
u32 halt_wakeup;
-#ifdef CONFIG_PPC
64
+#ifdef CONFIG_PPC
_BOOK3S
u32 pf_storage;
u32 pf_instruc;
u32 sp_storage;
u32 pf_storage;
u32 pf_instruc;
u32 sp_storage;
@@
-127,9
+127,9
@@
struct kvmppc_pte {
u64 eaddr;
u64 vpage;
u64 raddr;
u64 eaddr;
u64 vpage;
u64 raddr;
- bool may_read;
- bool may_write;
- bool may_execute;
+ bool may_read
: 1
;
+ bool may_write
: 1
;
+ bool may_execute
: 1
;
};
struct kvmppc_mmu {
};
struct kvmppc_mmu {
@@
-160,7
+160,7
@@
struct hpte_cache {
struct kvm_vcpu_arch {
ulong host_stack;
u32 host_pid;
struct kvm_vcpu_arch {
ulong host_stack;
u32 host_pid;
-#ifdef CONFIG_PPC
64
+#ifdef CONFIG_PPC
_BOOK3S
ulong host_msr;
ulong host_r2;
void *host_retip;
ulong host_msr;
ulong host_r2;
void *host_retip;
@@
-191,19
+191,18
@@
struct kvm_vcpu_arch {
u32 qpr[32];
#endif
u32 qpr[32];
#endif
+#ifdef CONFIG_BOOKE
ulong pc;
ulong ctr;
ulong lr;
ulong pc;
ulong ctr;
ulong lr;
-#ifdef CONFIG_BOOKE
ulong xer;
u32 cr;
#endif
ulong msr;
ulong xer;
u32 cr;
#endif
ulong msr;
-#ifdef CONFIG_PPC
64
+#ifdef CONFIG_PPC
_BOOK3S
ulong shadow_msr;
ulong shadow_msr;
- ulong shadow_srr1;
ulong hflags;
ulong guest_owned_ext;
#endif
ulong hflags;
ulong guest_owned_ext;
#endif
@@
-258,14
+257,13
@@
struct kvm_vcpu_arch {
struct dentry *debugfs_exit_timing;
#endif
struct dentry *debugfs_exit_timing;
#endif
+#ifdef CONFIG_BOOKE
u32 last_inst;
u32 last_inst;
-#ifdef CONFIG_PPC64
- ulong fault_dsisr;
-#endif
ulong fault_dear;
ulong fault_esr;
ulong queued_dear;
ulong queued_esr;
ulong fault_dear;
ulong fault_esr;
ulong queued_dear;
ulong queued_esr;
+#endif
gpa_t paddr_accessed;
u8 io_gpr; /* GPR used as IO source/target */
gpa_t paddr_accessed;
u8 io_gpr; /* GPR used as IO source/target */
@@
-273,6
+271,8
@@
struct kvm_vcpu_arch {
u8 mmio_sign_extend;
u8 dcr_needed;
u8 dcr_is_write;
u8 mmio_sign_extend;
u8 dcr_needed;
u8 dcr_is_write;
+ u8 osi_needed;
+ u8 osi_enabled;
u32 cpr0_cfgaddr; /* holds the last set cpr0_cfgaddr */
u32 cpr0_cfgaddr; /* holds the last set cpr0_cfgaddr */
@@
-281,7
+281,7
@@
struct kvm_vcpu_arch {
u64 dec_jiffies;
unsigned long pending_exceptions;
u64 dec_jiffies;
unsigned long pending_exceptions;
-#ifdef CONFIG_PPC
64
+#ifdef CONFIG_PPC
_BOOK3S
struct hpte_cache hpte_cache[HPTEG_CACHE_NUM];
int hpte_cache_offset;
#endif
struct hpte_cache hpte_cache[HPTEG_CACHE_NUM];
int hpte_cache_offset;
#endif