summaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorLaurent Vivier2007-07-30 12:41:19 +0200
committerAvi Kivity2007-10-13 10:18:21 +0200
commite7d5d76cae970117affe07f809faf0f18bbac675 (patch)
tree3410ce6d12e1095affcd4e6f7fd36716587916c6 /drivers/kvm/kvm.h
parentKVM: Change the emulator_{read,write,cmpxchg}_* functions to take a vcpu (diff)
downloadkernel-qcow2-linux-e7d5d76cae970117affe07f809faf0f18bbac675.tar.gz
kernel-qcow2-linux-e7d5d76cae970117affe07f809faf0f18bbac675.tar.xz
kernel-qcow2-linux-e7d5d76cae970117affe07f809faf0f18bbac675.zip
KVM: Remove kvm_{read,write}_guest()
... in favor of the more general emulator_{read,write}_*. Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 1072c8322d4f..030b93bcdf1b 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -561,15 +561,14 @@ void kvm_load_guest_fpu(struct kvm_vcpu *vcpu);
void kvm_put_guest_fpu(struct kvm_vcpu *vcpu);
void kvm_flush_remote_tlbs(struct kvm *kvm);
-int kvm_read_guest(struct kvm_vcpu *vcpu,
- gva_t addr,
- unsigned long size,
- void *dest);
-
-int kvm_write_guest(struct kvm_vcpu *vcpu,
- gva_t addr,
- unsigned long size,
- void *data);
+int emulator_read_std(unsigned long addr,
+ void *val,
+ unsigned int bytes,
+ struct kvm_vcpu *vcpu);
+int emulator_write_emulated(unsigned long addr,
+ const void *val,
+ unsigned int bytes,
+ struct kvm_vcpu *vcpu);
unsigned long segment_base(u16 selector);