Skip to contentSkip to conversation

Vmi native fix

PATCH New Zachary Amsden 1 participant 1 message Jan 5, 2007 virtio core

lore
Share & tools
lore
#0 lore raw

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.

arch/i386/kernel/vmi.c +2 -1
diff -r 1915e2685a3c arch/i386/kernel/vmi.c
@@ -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);
 }
 
 /*