On 2/27/2026 3:18 PM, Paolo Bonzini wrote:
From: myrslint <[email protected]>

Add a new accelerator option that allows the guest to adjust the PAT.
This is already the case for TDX guests and allows using virtio-gpu
Venus with RADV or NVIDIA drivers.

The quirk is disabled by default.  Since this caused problems with
Linux's Bochs video device driver, add a knob to leave it enabled,
and for now do ont enable it by default.

s/do ont/do not/


Signed-off-by: Myrsky Lintu <[email protected]>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2943
Link: 
https://lore.kernel.org/r/[email protected]
[Add property; for now leave it off by default. - Paolo]
Signed-off-by: Paolo Bonzini <[email protected]>
---
  include/system/kvm_int.h |  1 +
  accel/kvm/kvm-all.c      |  1 +
  target/i386/kvm/kvm.c    | 50 +++++++++++++++++++++++++++++++++++++++-
  3 files changed, 51 insertions(+), 1 deletion(-)


...

+
+    object_class_property_add_enum(oc, "honor-guest-pat", "OnOffAuto",
+                                   &OnOffAuto_lookup,
+                                   kvm_arch_get_honor_guest_pat,
+                                   kvm_arch_set_honor_guest_pat);
+    object_class_property_set_description(oc, "honor-guest-pat",
+                                          "Disable KVM quirk that ignores guest PAT 
"
+                                          "memory type settings (default: 
auto)");

s/default: auto/default: off/

With above fixed,

Reviewed-by: Xiaoyao Li <[email protected]>

Reply via email to