diff options
author | Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com> | 2019-05-14 15:49:52 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-05-24 21:27:11 +0200 |
commit | c9bcd3e3335d0a29d89fabd2c385e1b989e6f1b0 (patch) | |
tree | 2849aa049e6a705cb1e4b0dac348282a67b7b035 /samples/connector/cn_test.c | |
parent | 204c91eff798a78498cc7cbf1bc76892badfa96d (diff) | |
download | linux-c9bcd3e3335d0a29d89fabd2c385e1b989e6f1b0.tar.gz linux-c9bcd3e3335d0a29d89fabd2c385e1b989e6f1b0.tar.bz2 linux-c9bcd3e3335d0a29d89fabd2c385e1b989e6f1b0.zip |
kvm: svm/avic: fix off-by-one in checking host APIC ID
Current logic does not allow VCPU to be loaded onto CPU with
APIC ID 255. This should be allowed since the host physical APIC ID
field in the AVIC Physical APIC table entry is an 8-bit value,
and APIC ID 255 is valid in system with x2APIC enabled.
Instead, do not allow VCPU load if the host APIC ID cannot be
represented by an 8-bit value.
Also, use the more appropriate AVIC_PHYSICAL_ID_ENTRY_HOST_PHYSICAL_ID_MASK
instead of AVIC_MAX_PHYSICAL_ID_COUNT.
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'samples/connector/cn_test.c')
0 files changed, 0 insertions, 0 deletions