diff options
| author | Naveen N Rao <naveen@kernel.org> | 2025-09-05 00:03:03 +0530 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-10-17 15:22:10 -0700 |
| commit | 83f3cbcd3a9f62adfa52257e3b7ae6bf8af54baa (patch) | |
| tree | 762f648c85fe39f37e4e441e20bdae02a7d66d98 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | f2f6e67a56dc88fea7e9b10c4e79bb01d97386b7 (diff) | |
KVM: SVM: Replace hard-coded value 0x1FF with the corresponding macro
The lower 9-bit field in EXITINFO2 represents an index into the AVIC
Physical/Logical APIC ID table for a AVIC_INCOMPLETE_IPI #VMEXIT. Since
the index into the Logical APIC ID table is just 8 bits, this field is
actually bound by the bit-width of the index into the AVIC Physical ID
table which is represented by AVIC_PHYSICAL_MAX_INDEX_MASK. So, use that
macro to mask EXITINFO2.Index instead of hard coding 0x1FF in
avic_incomplete_ipi_interception().
Co-developed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Naveen N Rao (AMD) <naveen@kernel.org>
Link: https://lore.kernel.org/r/95795f449c68bffcb3e1789ee2b0b7393711d37d.1757009416.git.naveen@kernel.org
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
