x86/virt, x86/platform: Add ->guest_late_init() callback to hypervisor_x86 structure
Add a new guest_late_init callback to the hypervisor_x86 structure. It will replace the current kvm_guest_init() call which is changed to make use of the new callback. Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: kvm@vger.kernel.org Cc: rkrcmar@redhat.com Link: http://lkml.kernel.org/r/20171109132739.23465-5-jgross@suse.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:

committed by
Ingo Molnar

parent
6d7305254e
commit
f361464600
@@ -117,11 +117,13 @@ struct x86_init_pci {
|
||||
/**
|
||||
* struct x86_hyper_init - x86 hypervisor init functions
|
||||
* @init_platform: platform setup
|
||||
* @guest_late_init: guest late init
|
||||
* @x2apic_available: X2APIC detection
|
||||
* @init_mem_mapping: setup early mappings during init_mem_mapping()
|
||||
*/
|
||||
struct x86_hyper_init {
|
||||
void (*init_platform)(void);
|
||||
void (*guest_late_init)(void);
|
||||
bool (*x2apic_available)(void);
|
||||
void (*init_mem_mapping)(void);
|
||||
};
|
||||
|
Reference in New Issue
Block a user