diff options
author | Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> | 2016-05-04 14:09:46 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-05-18 18:04:28 +0200 |
commit | 44a95dae1d229a4967bbfcc56fb2116a9b4fe942 (patch) | |
tree | a4d63ca6d968ca8878b9e6d833c6c0b16f59be39 /arch/x86/include/asm/kvm_host.h | |
parent | 3d5615e5342781453633af7107d72afd601b36a7 (diff) | |
download | lwn-44a95dae1d229a4967bbfcc56fb2116a9b4fe942.tar.gz lwn-44a95dae1d229a4967bbfcc56fb2116a9b4fe942.zip |
KVM: x86: Detect and Initialize AVIC support
This patch introduces AVIC-related data structure, and AVIC
initialization code.
There are three main data structures for AVIC:
* Virtual APIC (vAPIC) backing page (per-VCPU)
* Physical APIC ID table (per-VM)
* Logical APIC ID table (per-VM)
Currently, AVIC is disabled by default. Users can manually
enable AVIC via kernel boot option kvm-amd.avic=1 or during
kvm-amd module loading with parameter avic=1.
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
[Avoid extra indentation (Boris). - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 2df5db6fb58b..337e13b0d01d 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -773,6 +773,10 @@ struct kvm_arch { u8 nr_reserved_ioapic_pins; bool disabled_lapic_found; + + /* Struct members for AVIC */ + struct page *avic_logical_id_table_page; + struct page *avic_physical_id_table_page; }; struct kvm_vm_stat { |