KVM: nvmx: retry writing guest memory after page fault injected
Hi,
Quoted 11 lines · Liran Alon
Quoted 8 lines · linmiaohe
From: Miaohe Lin <[email protected]>
We should retry writing guest memory when
kvm_write_guest_virt_system()failed and page fault is injected inhandle_vmread().Signed-off-by Miaohe Lin <[email protected]>Patch fix seems correct to me:
Reviewed-by Liran Alon <[email protected]>
Thanks for your review.
Quoted 7 lines
However, I suggest to rephrase commit title & message as follows:
"""
KVM: nVMX: vmread should not set rflags to specify success in case of #PFIn case writing to vmread destination operand result in a #PF, vmread should not call
nested_vmx_succeed()to set rflags to specify success. Similar to as done in for VMPTRST (Seehandle_vmptrst()). """
Thanks for your sueestion, I would rephrase commit title & message accordingly.
Quoted 2 lines
In addition, it will be appreciated if you would also submit kvm-unit-test that verifies this condition.
I'd like to submit kvm-unit-test that verifies this condition, but I am not familiar with the kvm-unit-test code yet and also not in my recent todo list. So such a patch may come late. It would be appreciated too if you could submit this kvm-unit-test patch. :)
Thanks again.
Quoted 26 lines · linmiaohe
Hi,
Quoted 11 lines · Liran Alon
Quoted 8 lines · linmiaohe
From: Miaohe Lin <[email protected]>
We should retry writing guest memory when
kvm_write_guest_virt_system()failed and page fault is injected inhandle_vmread().Signed-off-by Miaohe Lin <[email protected]>Patch fix seems correct to me:
Reviewed-by Liran Alon <[email protected]>Thanks for your review.
Quoted 7 lines
However, I suggest to rephrase commit title & message as follows:
"""
KVM: nVMX: vmread should not set rflags to specify success in case of #PFIn case writing to vmread destination operand result in a #PF, vmread should not call
nested_vmx_succeed()to set rflags to specify success. Similar to as done in for VMPTRST (Seehandle_vmptrst()). """
Quoted 8 lines
Thanks for your sueestion, I would rephrase commit title & message accordingly.
Quoted 2 lines
In addition, it will be appreciated if you would also submit kvm-unit-test that verifies this condition.
I'd like to submit kvm-unit-test that verifies this condition, but I am not familiar with the kvm-unit-test code yet and also not in my recent todo list. So such a patch may come late. It would be appreciated too if you could submit this kvm-unit-test patch. :)
Hmm, did you verify your own patch? Please give the testcase.