diff options
| author | Jim Mattson <jmattson@google.com> | 2026-04-07 12:03:27 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-05-14 05:45:11 -0700 |
| commit | 02233c73f8ae275e80bde931173054b23082751c (patch) | |
| tree | 0739dda8af5eb1cd4c2dbb8a933c3c1193fba313 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | 4b83e4ba836eadaf369e9af016e20cd74b7fa011 (diff) | |
KVM: x86: nSVM: Set vmcb02.g_pat correctly for nested NPT
When KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT is disabled and nested NPT is
enabled in vmcb12, copy the (cached and validated) vmcb12 g_pat field to
vmcb02's g_pat, giving L2 its own independent guest PAT register.
When the quirk is enabled (default), or when NPT is enabled but nested NPT
is disabled, copy L1's IA32_PAT MSR to the vmcb02 g_pat field, since L2
shares the IA32_PAT MSR with L1.
When NPT is disabled, the g_pat field is ignored by hardware.
Fixes: 15038e147247 ("KVM: SVM: obey guest PAT")
Signed-off-by: Jim Mattson <jmattson@google.com>
Link: https://patch.msgid.link/20260407190343.325299-5-jmattson@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
