diff options
author | Laurent Vivier <Laurent.Vivier@bull.net> | 2007-07-30 06:35:24 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:21 -0400 |
commit | cebff02b11b02a81d21b6cc8390938dc9bdf0a12 (patch) | |
tree | 99641f1b444835fca8218a5f5b10d2d1bd6ad429 /drivers/kvm/x86_emulate.h | |
parent | 0e5017d4ae981b0311a3ec1ca04806a4ae7d7446 (diff) |
KVM: Change the emulator_{read,write,cmpxchg}_* functions to take a vcpu
... instead of a x86_emulate_ctxt, so that other callers can use it easily.
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/x86_emulate.h')
-rw-r--r-- | drivers/kvm/x86_emulate.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/kvm/x86_emulate.h b/drivers/kvm/x86_emulate.h index 574cca70b22e..92c73aa7f9ac 100644 --- a/drivers/kvm/x86_emulate.h +++ b/drivers/kvm/x86_emulate.h | |||
@@ -60,7 +60,7 @@ struct x86_emulate_ops { | |||
60 | * @bytes: [IN ] Number of bytes to read from memory. | 60 | * @bytes: [IN ] Number of bytes to read from memory. |
61 | */ | 61 | */ |
62 | int (*read_std)(unsigned long addr, void *val, | 62 | int (*read_std)(unsigned long addr, void *val, |
63 | unsigned int bytes, struct x86_emulate_ctxt * ctxt); | 63 | unsigned int bytes, struct kvm_vcpu *vcpu); |
64 | 64 | ||
65 | /* | 65 | /* |
66 | * write_std: Write bytes of standard (non-emulated/special) memory. | 66 | * write_std: Write bytes of standard (non-emulated/special) memory. |
@@ -71,7 +71,7 @@ struct x86_emulate_ops { | |||
71 | * @bytes: [IN ] Number of bytes to write to memory. | 71 | * @bytes: [IN ] Number of bytes to write to memory. |
72 | */ | 72 | */ |
73 | int (*write_std)(unsigned long addr, const void *val, | 73 | int (*write_std)(unsigned long addr, const void *val, |
74 | unsigned int bytes, struct x86_emulate_ctxt * ctxt); | 74 | unsigned int bytes, struct kvm_vcpu *vcpu); |
75 | 75 | ||
76 | /* | 76 | /* |
77 | * read_emulated: Read bytes from emulated/special memory area. | 77 | * read_emulated: Read bytes from emulated/special memory area. |
@@ -82,7 +82,7 @@ struct x86_emulate_ops { | |||
82 | int (*read_emulated) (unsigned long addr, | 82 | int (*read_emulated) (unsigned long addr, |
83 | void *val, | 83 | void *val, |
84 | unsigned int bytes, | 84 | unsigned int bytes, |
85 | struct x86_emulate_ctxt * ctxt); | 85 | struct kvm_vcpu *vcpu); |
86 | 86 | ||
87 | /* | 87 | /* |
88 | * write_emulated: Read bytes from emulated/special memory area. | 88 | * write_emulated: Read bytes from emulated/special memory area. |
@@ -94,7 +94,7 @@ struct x86_emulate_ops { | |||
94 | int (*write_emulated) (unsigned long addr, | 94 | int (*write_emulated) (unsigned long addr, |
95 | const void *val, | 95 | const void *val, |
96 | unsigned int bytes, | 96 | unsigned int bytes, |
97 | struct x86_emulate_ctxt * ctxt); | 97 | struct kvm_vcpu *vcpu); |
98 | 98 | ||
99 | /* | 99 | /* |
100 | * cmpxchg_emulated: Emulate an atomic (LOCKed) CMPXCHG operation on an | 100 | * cmpxchg_emulated: Emulate an atomic (LOCKed) CMPXCHG operation on an |
@@ -108,7 +108,7 @@ struct x86_emulate_ops { | |||
108 | const void *old, | 108 | const void *old, |
109 | const void *new, | 109 | const void *new, |
110 | unsigned int bytes, | 110 | unsigned int bytes, |
111 | struct x86_emulate_ctxt * ctxt); | 111 | struct kvm_vcpu *vcpu); |
112 | 112 | ||
113 | }; | 113 | }; |
114 | 114 | ||