diff options
author | Sean Christopherson <seanjc@google.com> | 2023-02-07 00:21:56 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-03-14 10:20:07 -0400 |
commit | c281794eaa5c635c0edf39c6a9a3b0171000e92f (patch) | |
tree | 5c441f2f6a695a8c3215d15c72d6899c2c2df09e /tools/testing/selftests/kvm/lib/kvm_util.c | |
parent | 5999715922c5a3ede5d8fe2a6b17aba58a157d41 (diff) |
KVM: SVM: WARN if GATag generation drops VM or vCPU ID information
WARN if generating a GATag given a VM ID and vCPU ID doesn't yield the
same IDs when pulling the IDs back out of the tag. Don't bother adding
error handling to callers, this is very much a paranoid sanity check as
KVM fully controls the VM ID and is supposed to reject too-big vCPU IDs.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tested-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Message-Id: <20230207002156.521736-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/kvm_util.c')
0 files changed, 0 insertions, 0 deletions