summary refs log tree commit diff stats
path: root/include/qemu/main-loop.h
diff options
context:
space:
mode:
authorZeng Guang <guang.zeng@intel.com>2022-08-25 10:52:46 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-10-31 09:46:34 +0100
commit19e2a9fb9da067acba95b3be83588bda5a3f6a99 (patch)
tree862b883ecf442cf17668308eb740aeb523383855 /include/qemu/main-loop.h
parentc891c24b1a4f5496cdb5f6afff9dae146334c7d3 (diff)
downloadfocaccia-qemu-19e2a9fb9da067acba95b3be83588bda5a3f6a99.tar.gz
focaccia-qemu-19e2a9fb9da067acba95b3be83588bda5a3f6a99.zip
target/i386: Set maximum APIC ID to KVM prior to vCPU creation
Specify maximum possible APIC ID assigned for current VM session to KVM
prior to the creation of vCPUs. By this setting, KVM can set up VM-scoped
data structure indexed by the APIC ID, e.g. Posted-Interrupt Descriptor
pointer table to support Intel IPI virtualization, with the most optimal
memory footprint.

It can be achieved by calling KVM_ENABLE_CAP for KVM_CAP_MAX_VCPU_ID
capability once KVM has enabled it. Ignoring the return error if KVM
doesn't support this capability yet.

Signed-off-by: Zeng Guang <guang.zeng@intel.com>
Acked-by: Peter Xu <peterx@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20220825025246.26618-1-guang.zeng@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/main-loop.h')
0 files changed, 0 insertions, 0 deletions