diff options
| author | Jim Mattson <jmattson@google.com> | 2026-04-07 12:03:25 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-05-14 05:45:09 -0700 |
| commit | 0a8aeb15848ea1c873fd20e1ad3aeba689aeafa8 (patch) | |
| tree | 3bc019557c0ee5463beab2c0f73cd09a17aa5c6d /tools/lib/python/kdoc/python_version.py | |
| parent | 822790ab01495d67b14174063ba46fcc19ff0aa8 (diff) | |
KVM: x86: nSVM: Clear VMCB_NPT clean bit when updating hPAT from guest mode
When running an L2 guest and writing to MSR_IA32_CR_PAT, the host PAT value
is stored in both vmcb01's g_pat field and vmcb02's g_pat field, but the
clean bit was only being cleared for vmcb02.
Introduce the helper vmcb_set_gpat() which sets vmcb->save.g_pat and marks
the VMCB dirty for VMCB_NPT. Use this helper in both svm_set_msr() for
updating vmcb01 and in nested_vmcb02_compute_g_pat() for updating vmcb02,
ensuring both VMCBs' NPT fields are properly marked dirty.
Fixes: 4995a3685f1b ("KVM: SVM: Use a separate vmcb for the nested L2 guest")
Signed-off-by: Jim Mattson <jmattson@google.com>
Link: https://patch.msgid.link/20260407190343.325299-3-jmattson@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
