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>
This commit is contained in:
Laurent Vivier
2007-07-30 13:41:19 +03:00
committed by Avi Kivity
parent cebff02b11
commit e7d5d76cae
4 changed files with 25 additions and 88 deletions

View File

@@ -1019,7 +1019,8 @@ static int io_get_override(struct vcpu_svm *svm,
svm->vmcb->control.exit_info_2,
ins_length);
if (kvm_read_guest(&svm->vcpu, rip, ins_length, inst) != ins_length)
if (emulator_read_std(rip, inst, ins_length, &svm->vcpu)
!= X86EMUL_CONTINUE)
/* #PF */
return 0;