Vmi native fix
PATCH 3/3 Vmi native fix
In paravirt builds with VMI compiled in, vmi_bringup is called unconditionally, not via a paravirt-ops table (as no other hypervisor uses the APIC startup technique). Make the calls to setup VMI state conditional on the presence of the VMI ROM.
Signed-off-by Zachary Amsden <[email protected]>
arch/i386/kernel/vmi.c +2 -1
@@ -645,7 +645,8 @@ void vmi_bringup(void)void vmi_bringup (void ) {/* We must establish the lowmem mapping for MMU ops to work */ - vmi_ops.set_linear_mapping (0 , __PAGE_OFFSET, max_low_pfn,0 ); +if (vmi_rom) + vmi_ops.set_linear_mapping (0 , __PAGE_OFFSET, max_low_pfn,0 ); }/*