Re: [PATCH v8 3/8] KVM: Add KVM_EXIT_MEMORY_FAULT exit

2022-09-16 Thread Bagas Sanjaya
On Thu, Sep 15, 2022 at 10:29:08PM +0800, Chao Peng wrote: > + - KVM_MEMORY_EXIT_FLAG_PRIVATE - indicates the memory error is caused by > + private memory access when the bit is set otherwise the memory error is > + caused by shared memory access when the bit is clear. s/set otherwise/set. Oth

Re: [PATCH v8 3/8] KVM: Add KVM_EXIT_MEMORY_FAULT exit

2022-09-16 Thread Chao Peng
On Fri, Sep 16, 2022 at 04:17:48PM +0700, Bagas Sanjaya wrote: > On Thu, Sep 15, 2022 at 10:29:08PM +0800, Chao Peng wrote: > > + - KVM_MEMORY_EXIT_FLAG_PRIVATE - indicates the memory error is caused by > > + private memory access when the bit is set otherwise the memory error is > > + caused b

[PATCH v8 3/8] KVM: Add KVM_EXIT_MEMORY_FAULT exit

2022-09-15 Thread Chao Peng
This new KVM exit allows userspace to handle memory-related errors. It indicates an error happens in KVM at guest memory range [gpa, gpa+size). The flags includes additional information for userspace to handle the error. Currently bit 0 is defined as 'private memory' where '1' indicates error happe