Thread (1 message) 1 message, 1 author, 2017-01-03

Re: kvm VMCALL question

From: jack.chen <hidden>
Date: 2017-01-03 12:35:53

  Thanks,it is my fault that I ignore
 if (kvm_hv_hypercall_enabled(vcpu->kvm))
return kvm_hv_hypercall(vcpu);
in the kvm_emulate_hypercall function,and in fact VM exit did occured!
however,I have another question,I want to set PF_VECTOR in exception
and to intercept a specific address in VM such as 0xFFFFFFFF,at fist I
set PAGE_FAULT_ERROR_CODE_MASK and PAGE_FAULT_ERROR_CODE_MATCH to 0
,so as to get my target error code,then change
PAGE_FAULT_ERROR_CODE_MASK fitting my error code,but at the first
step,host break down!I do not know why!
can you analyse the possible reason??
thanks a lot!

2017-01-03 19:47 GMT+08:00 Huaitong Han [off-list ref]:
how did you confirm no VM-Exit occurred

Thanks.

Huaitong Han
Intel OTC Virtualization team

2017-01-02 18:24 GMT+08:00 jack.chen [off-list ref]:
quoted
thanks, I just need it exit to kvm ,however every time I execute
VMCALL,it program breakdown,and no exit occured!!I do not know why!

2017-01-02 17:55 GMT+08:00 Paolo Bonzini [off-list ref]:
quoted
Please reply to the mailing list, or I will stop answering your
questions even there.

Paolo

On 02/01/2017 10:48, jack.chen wrote:
quoted
thanks, I just need it exit to kvm ,however every time I execute
VMCALL,it program breakdown,and no exit occured!!I do not know why!

2017-01-02 17:36 GMT+08:00 Paolo Bonzini [off-list ref]:
quoted

On 30/12/2016 10:14, jack.chen wrote:
quoted
hello ,I execute VMCALL in virtual machine,But no vm exit occured,is
the VMCALL need set some bit in register or VMCS ??
thanks!
#define VMCALL_M __asm _EMIT 0x0f __asm _EMIT 0x01 __asm _EMIT 0xc1
If you're expecting an exit to QEMU, you won't get it; VMCALL is
usually
handled entirely in the kernel.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help