diff options
author | 2024-01-25 13:08:23 +0800 | |
---|---|---|
committer | 2024-01-31 16:21:00 -0500 | |
commit | 9e05d9b06757732477cca428e87f3d72163d01cf (patch) | |
tree | e5a607a5fc113f05df044f52deb4d3bc2b130f33 /scripts/gdb/linux/interrupts.py | |
parent | Merge tag 'kvm-riscv-6.8-2' of https://github.com/kvm-riscv/linux into HEAD (diff) | |
download | wireguard-linux-9e05d9b06757732477cca428e87f3d72163d01cf.tar.xz wireguard-linux-9e05d9b06757732477cca428e87f3d72163d01cf.zip |
KVM: x86: Check irqchip mode before create PIT
As the kvm api(https://docs.kernel.org/virt/kvm/api.html) reads,
KVM_CREATE_PIT2 call is only valid after enabling in-kernel irqchip
support via KVM_CREATE_IRQCHIP.
Without this check, I can create PIT first and enable irqchip-split
then, which may cause the PIT invalid because of lacking of in-kernel
PIC to inject the interrupt.
Signed-off-by: Tengfei Yu <moehanabichan@gmail.com>
Message-Id: <20240125050823.4893-1-moehanabichan@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions