> From: Roger Pau Monne <[email protected]> > Sent: Wednesday, December 14, 2022 12:31 AM > > Add support for enabling guest Bus Lock Detection on Intel systems. > Such detection works by triggering a vmexit, which ought to be enough > of a pause to prevent a guest from abusing of the Bus Lock. > > Add an extra Xen perf counter to track the number of Bus Locks detected. > This is done because Bus Locks can also be reported by setting the bit > 26 in the exit reason field, so also account for those. > > Note EXIT_REASON_BUS_LOCK VMExits will always have bit 26 set in > exit_reason, and hence the performance counter doesn't need to be > increased for EXIT_REASON_BUS_LOCK handling. > > Suggested-by: Andrew Cooper <[email protected]> > Signed-off-by: Roger Pau Monné <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
