diff options
Diffstat (limited to 'include/asm-x86/kvm_x86_emulate.h')
-rw-r--r-- | include/asm-x86/kvm_x86_emulate.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/include/asm-x86/kvm_x86_emulate.h b/include/asm-x86/kvm_x86_emulate.h index 7db91b9bdcd4..d6337f941c98 100644 --- a/include/asm-x86/kvm_x86_emulate.h +++ b/include/asm-x86/kvm_x86_emulate.h | |||
@@ -68,10 +68,10 @@ struct x86_emulate_ops { | |||
68 | * @val: [OUT] Value read from memory, zero-extended to 'u_long'. | 68 | * @val: [OUT] Value read from memory, zero-extended to 'u_long'. |
69 | * @bytes: [IN ] Number of bytes to read from memory. | 69 | * @bytes: [IN ] Number of bytes to read from memory. |
70 | */ | 70 | */ |
71 | int (*read_emulated) (unsigned long addr, | 71 | int (*read_emulated)(unsigned long addr, |
72 | void *val, | 72 | void *val, |
73 | unsigned int bytes, | 73 | unsigned int bytes, |
74 | struct kvm_vcpu *vcpu); | 74 | struct kvm_vcpu *vcpu); |
75 | 75 | ||
76 | /* | 76 | /* |
77 | * write_emulated: Read bytes from emulated/special memory area. | 77 | * write_emulated: Read bytes from emulated/special memory area. |
@@ -80,10 +80,10 @@ struct x86_emulate_ops { | |||
80 | * required). | 80 | * required). |
81 | * @bytes: [IN ] Number of bytes to write to memory. | 81 | * @bytes: [IN ] Number of bytes to write to memory. |
82 | */ | 82 | */ |
83 | int (*write_emulated) (unsigned long addr, | 83 | int (*write_emulated)(unsigned long addr, |
84 | const void *val, | 84 | const void *val, |
85 | unsigned int bytes, | 85 | unsigned int bytes, |
86 | struct kvm_vcpu *vcpu); | 86 | struct kvm_vcpu *vcpu); |
87 | 87 | ||
88 | /* | 88 | /* |
89 | * cmpxchg_emulated: Emulate an atomic (LOCKed) CMPXCHG operation on an | 89 | * cmpxchg_emulated: Emulate an atomic (LOCKed) CMPXCHG operation on an |
@@ -93,11 +93,11 @@ struct x86_emulate_ops { | |||
93 | * @new: [IN ] Value to write to @addr. | 93 | * @new: [IN ] Value to write to @addr. |
94 | * @bytes: [IN ] Number of bytes to access using CMPXCHG. | 94 | * @bytes: [IN ] Number of bytes to access using CMPXCHG. |
95 | */ | 95 | */ |
96 | int (*cmpxchg_emulated) (unsigned long addr, | 96 | int (*cmpxchg_emulated)(unsigned long addr, |
97 | const void *old, | 97 | const void *old, |
98 | const void *new, | 98 | const void *new, |
99 | unsigned int bytes, | 99 | unsigned int bytes, |
100 | struct kvm_vcpu *vcpu); | 100 | struct kvm_vcpu *vcpu); |
101 | 101 | ||
102 | }; | 102 | }; |
103 | 103 | ||
@@ -143,7 +143,7 @@ struct x86_emulate_ctxt { | |||
143 | /* Register state before/after emulation. */ | 143 | /* Register state before/after emulation. */ |
144 | struct kvm_vcpu *vcpu; | 144 | struct kvm_vcpu *vcpu; |
145 | 145 | ||
146 | /* Linear faulting address (if emulating a page-faulting instruction). */ | 146 | /* Linear faulting address (if emulating a page-faulting instruction) */ |
147 | unsigned long eflags; | 147 | unsigned long eflags; |
148 | 148 | ||
149 | /* Emulated execution mode, represented by an X86EMUL_MODE value. */ | 149 | /* Emulated execution mode, represented by an X86EMUL_MODE value. */ |