Re: [PATCH 1/3] kvm,x86: Force sync fault if previous attempts failed

2020-06-17 Thread Vivek Goyal
On Wed, Jun 17, 2020 at 03:02:10PM +0200, Vitaly Kuznetsov wrote: > Vivek Goyal writes: > > > Page fault error handling behavior in kvm seems little inconsistent when > > page fault reports error. If we are doing fault synchronously > > then we capture error (-EFAULT) returned by

Re: [PATCH 1/3] kvm,x86: Force sync fault if previous attempts failed

2020-06-17 Thread Vitaly Kuznetsov
Vivek Goyal writes: > Page fault error handling behavior in kvm seems little inconsistent when > page fault reports error. If we are doing fault synchronously > then we capture error (-EFAULT) returned by __gfn_to_pfn_memslot() and > exit to user space and qemu reports error, "error: kvm run

[PATCH 1/3] kvm,x86: Force sync fault if previous attempts failed

2020-06-16 Thread Vivek Goyal
Page fault error handling behavior in kvm seems little inconsistent when page fault reports error. If we are doing fault synchronously then we capture error (-EFAULT) returned by __gfn_to_pfn_memslot() and exit to user space and qemu reports error, "error: kvm run failed Bad address". But if we