Re: [PATCH v2] KVM: X86: Fix exception untrigger on ret to user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



07.07.2021 02:45, Paolo Bonzini пишет:
On 07/07/21 01:06, stsp wrote:
What I ask is how SHOULD the
KVM_SET_REGS and KVM_SET_SREGS
behave when someone (mistakenly)
calls them with the exception pending.
Should they return an error
instead of canceling exception?

In theory, KVM_SET_REGS and KVM_SET_SREGS should do nothing but set the value of the registers.  They not should clear either vcpu->arch.exception.pending or vcpu->arch.exception.injected.
Maybe they should return an
error, or do something else to
alert the user? Otherwise the
100% wrong usage gets unnoticed.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux