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:
committed by
Avi Kivity
parent
cebff02b11
commit
e7d5d76cae
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user