vmx-firmware-cleanup.patch
PATCH 1/1 vmx-firmware-cleanup.patch
Various minor vmxassist cleanups.
(patches are against current xen-vt-testing tree)
Signed-off-by Leendert van Doorn <[email protected]>
tools/firmware/vmxassist/Makefile +1 -1
@@ -24,7 +24,7 @@ # The emulator code lives in ROM space TEXTADDR=0x000D0000 -DEFINES=-DDEBUG -DENABLE_VME -DTEXTADDR=${TEXTADDR} +DEFINES=-DDEBUG -DTEXTADDR=${TEXTADDR} XENINC=-I$(XEN_ROOT)/xen/include -I$(XEN_ROOT)/tools/libxc #DEFINES=-DDEBUG -DTEST -DTEXTADDR=${TEXTADDR} #XENINC=-I/home/leendert/xen/xeno-unstable.bk/xen/include
tools/firmware/vmxassist/setup.c +1 -1
@@ -353,7 +353,7 @@#endif setup_gdt ();setup_idt (); -#ifdef ENABLE_VME +#ifndef TEST set_cr4 (get_cr4 () |CR4_VME );#endif setup_ctx ();
tools/firmware/vmxassist/vm86.c +1 -2
@@ -465,8 +465,7 @@* Emulate a segment load in protected mode */ int -load_seg (unsigned long sel,unsigned long *base,unsigned long *limit, -union vmcs_arbytes *arbytes) +load_seg (unsigned long sel,u32 *base,u32 *limit,union vmcs_arbytes *arbytes) {unsigned long long entry;
tools/firmware/vmxassist/vmxloader.c +3 -2
@@ -110,8 +110,8 @@ }#ifdef _ACPI_puts ("Loading ACPI ...\n" ); -if (ACPI_PHYSICAL_ADDRESS +sizeof (acpi) <=0xF0000 ){ -/* make sure acpi table does not overlap rombios +if (ACPI_PHYSICAL_ADDRESS +sizeof (acpi) <=0xF0000 ){ +/* make sure acpi table does not overlap rombios * currently acpi less than 8K will be OK. */ memcpy ((void *)ACPI_PHYSICAL_ADDRESS , acpi,sizeof (acpi));
@@ -122,5 +122,6 @@memcpy ((void *)TEXTADDR , vmxassist,sizeof (vmxassist));puts ("Go ...\n" ); ((void (*)())TEXTADDR )(); +return 0 ; }
tools/firmware/vmxassist/TODO deleted +0 -8
@@ -1,8 +0,0 @@ - -- Use the VME extensions (interrupt handling) - -- Use E820 map in vmxassist instead of cmos hack - -- Add ACPI support (Nitin's patch) - -