On 07/07/21 01:51, stsp wrote:
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.
No, setting the registers means that: setting the registers. If you set
RSP, the new value will be used for delivering the exception.
Paolo