KVM: nVMX: Update VMCS12_REVISION comment to state it should never change
authorSean Christopherson <seanjc@google.com>
Thu, 13 Jun 2024 19:01:03 +0000 (12:01 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 28 Jun 2024 15:55:00 +0000 (08:55 -0700)
commitcb9fb5fc12ef8a7c5129c7db0f80df45726b8dcd
treed15ced94df6bb5aca8fc17aa573fa02e1dbfe5a9
parent02b0d3b9d4dd1ef76b3e8c63175f1ae9ff392313
KVM: nVMX: Update VMCS12_REVISION comment to state it should never change

Rewrite the comment above VMCS12_REVISION to unequivocally state that the
ID must never change.  KVM_{G,S}ET_NESTED_STATE have been officially
supported for some time now, i.e. changing VMCS12_REVISION would break
userspace.

Opportunistically add a blurb to the CHECK_OFFSET() comment to make it
explicitly clear that new fields are allowed, i.e. that the restriction
on the layout is all about backwards compatibility.

No functional change intended.

Cc: Jim Mattson <jmattson@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Link: https://lore.kernel.org/r/20240613190103.1054877-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmcs12.h