summaryrefslogtreecommitdiff
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorZeng Guang <guang.zeng@intel.com>2022-06-23 17:45:11 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-24 04:52:04 -0400
commit4b88b1a518b337de1252b8180519ca4c00015c9e (patch)
treef8b714bcf4a2134bf0d7fb79c58babbbff080671 /arch/s390/kvm/kvm-s390.c
parenteede2065cacce2e04110bc6e45e9dc8e843c571b (diff)
KVM: selftests: Enhance handling WRMSR ICR register in x2APIC mode
Hardware would directly write x2APIC ICR register instead of software emulation in some circumstances, e.g when Intel IPI virtualization is enabled. This behavior requires normal reserved bits checking to ensure them input as zero, otherwise it will cause #GP. So we need mask out those reserved bits from the data written to vICR register. Remove Delivery Status bit emulation in test case as this flag is invalid and not needed in x2APIC mode. KVM may ignore clearing it during interrupt dispatch which will lead to fake test failure. Opportunistically correct vector number for test sending IPI to non-existent vCPUs. Signed-off-by: Zeng Guang <guang.zeng@intel.com> Message-Id: <20220623094511.26066-1-guang.zeng@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
0 files changed, 0 insertions, 0 deletions