On Wed Sep 11, 2024 at 04:36 PM UTC+0200, Sean Christopherson wrote: > On Wed, Sep 11, 2024, Nikolas Wipper wrote: >> Having this API, and specifically having a definite kvm_one_reg structure >> for x86 registers, would be interesting for register pinning/intercepts. >> With one_reg for x86 the API could be platform agnostic and possible even >> replace MSR filters for x86. > > I don't follow. MSR filters let userspace intercept accesses for a variety of > reasons, these APIs simply provide a way to read/write a register value that is > stored in KVM. I don't see how this could replace MSR filters. Nope, that would be an entirely different API, but if that uses one reg IDs it could be unified to cover CRs and MSRs all in one. Amazon Web Services Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B Sitz: Berlin Ust-ID: DE 365 538 597