diff options
| author | Juergen Gross <[email protected]> | 2017-11-09 13:27:39 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-11-10 09:03:14 +0000 |
| commit | 418492ba40b2c2bbdaf1a169aac5b1673bde8189 (patch) | |
| tree | 2deefed6dc8b2571b7f226effb8e4fa3596f5404 /drivers/fpga/fpga-region.c | |
| parent | x86/virt, x86/platform: Add ->guest_late_init() callback to hypervisor_x86 st... (diff) | |
| download | kernel-418492ba40b2c2bbdaf1a169aac5b1673bde8189.tar.gz kernel-418492ba40b2c2bbdaf1a169aac5b1673bde8189.zip | |
x86/virt/xen: Use guest_late_init to detect Xen PVH guest
In case we are booted via the default boot entry by a generic loader
like grub or OVMF it is necessary to distinguish between a HVM guest
with a device model supporting legacy devices and a PVH guest without
device model.
PVH guests will always have x86_platform.legacy.no_vga set and
x86_platform.legacy.rtc cleared, while both won't be true for HVM
guests.
Test for both conditions in the guest_late_init hook and set xen_pvh
to true if they are met.
Move some of the early PVH initializations to the new hook in order
to avoid duplicated code.
Signed-off-by: Juergen Gross <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions
