Re: [PATCH 0/4] Process some MMIO-related errors without KVM exit

2024-09-27 Thread Ivan Orlov
On Wed, Sep 25, 2024 at 05:06:45PM -0700, Sean Christopherson wrote: > > Yeah, but only because the alternative sucks worse. If KVM unconditionally > exited > with an emulation error, then unsuspecting (read: old) VMMs would likely > terminate > the guest, which gives guest userspace a way to D

Re: [PATCH 0/4] Process some MMIO-related errors without KVM exit

2024-09-25 Thread Sean Christopherson
On Tue, Sep 24, 2024, Ivan Orlov wrote: > On Mon, Sep 23, 2024 at 02:46:17PM -0700, Sean Christopherson wrote: > > > > > > > No. This is not architectural behavior. It's not even remotely > > > > close to > > > > architectural behavior. KVM's behavior isn't great, but making up > > > > _guest v

Re: [PATCH 0/4] Process some MMIO-related errors without KVM exit

2024-09-24 Thread Ivan Orlov
On Mon, Sep 23, 2024 at 02:46:17PM -0700, Sean Christopherson wrote: > > > > > No. This is not architectural behavior. It's not even remotely > > > close to > > > architectural behavior. KVM's behavior isn't great, but making up > > > _guest visible_ > > > behavior is not going to happen. > > >

Re: [PATCH 0/4] Process some MMIO-related errors without KVM exit

2024-09-24 Thread Sean Christopherson
On Mon, Sep 23, 2024, Jack Allister wrote: > On Mon, 2024-09-23 at 10:04 -0700, Sean Christopherson wrote: > > > > On Mon, Sep 23, 2024, Ivan Orlov wrote: > > > Currently, KVM may return a variety of internal errors to VMM when > > > accessing MMIO, and some of them could be gracefully handled on

Re: [PATCH 0/4] Process some MMIO-related errors without KVM exit

2024-09-24 Thread Sean Christopherson
On Mon, Sep 23, 2024, Jack Allister wrote: > On Mon, 2024-09-23 at 10:04 -0700, Sean Christopherson wrote: > > > > On Mon, Sep 23, 2024, Ivan Orlov wrote: > > > Currently, KVM may return a variety of internal errors to VMM when > > > accessing MMIO, and some of them could be gracefully handled on

Re: [PATCH 0/4] Process some MMIO-related errors without KVM exit

2024-09-23 Thread Allister, Jack
On Mon, 2024-09-23 at 10:04 -0700, Sean Christopherson wrote: > > On Mon, Sep 23, 2024, Ivan Orlov wrote: > > Currently, KVM may return a variety of internal errors to VMM when > > accessing MMIO, and some of them could be gracefully handled on the > > KVM > > level instead. Moreover, some of the

Re: [PATCH 0/4] Process some MMIO-related errors without KVM exit

2024-09-23 Thread Sean Christopherson
On Mon, Sep 23, 2024, Ivan Orlov wrote: > Currently, KVM may return a variety of internal errors to VMM when > accessing MMIO, and some of them could be gracefully handled on the KVM > level instead. Moreover, some of the MMIO-related errors are handled > differently in VMX in comparison with SVM,

[PATCH 0/4] Process some MMIO-related errors without KVM exit

2024-09-23 Thread Ivan Orlov
Currently, KVM may return a variety of internal errors to VMM when accessing MMIO, and some of them could be gracefully handled on the KVM level instead. Moreover, some of the MMIO-related errors are handled differently in VMX in comparison with SVM, which produces certain inconsistency and should