On 5/23/22 19:08, Sean Christopherson wrote:
If KVM injects a #GP like it's supposed to[*], will UNIXWARE eat the #GP and continue on, or will it explode? If it continues on, I'd prefer to avoid more special casing in KVM. If it explodes, I think my preference would be to just drop the MCi_CTL checks entirely. AFAICT, P4-based and P5-based Intel CPus, and all? AMD CPUs allow setting/clearing arbitrary bits. The checks really aren't buying us anything, and it seems like Intel retroactively defined the "architectural" behavior of only 0s/1s.
I'm always a bit worried about removing #GP behavior (just like adding it of course) because sometimes it is used by OSes to detect specific non-architectural processor behavior.
Paolo