mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[HVM] Rmove unused field pae_enabled from hvm_info_table.
Signed-off-by: Xin Li <xin.b.li@intel.com>
This commit is contained in:
1 parent
6b11879d81
commit
f5cbcc33d2
2 files changed
+4
-5
No files matched your search
@@ -167,7 +167,7 @@ static void set_hvm_info_checksum(struct hvm_info_table *t)
|
||||
*/
|
||||
static int set_hvm_info(int xc_handle, uint32_t dom,
|
||||
xen_pfn_t *pfn_list, unsigned int vcpus,
|
||||
unsigned int pae, unsigned int acpi, unsigned int apic)
|
||||
unsigned int acpi, unsigned int apic)
|
||||
{
|
||||
char *va_map;
|
||||
struct hvm_info_table *va_hvm;
|
||||
@@ -186,7 +186,6 @@ static int set_hvm_info(int xc_handle, uint32_t dom,
|
||||
va_hvm->length = sizeof(struct hvm_info_table);
|
||||
va_hvm->acpi_enabled = acpi;
|
||||
va_hvm->apic_enabled = apic;
|
||||
va_hvm->pae_enabled = pae;
|
||||
va_hvm->nr_vcpus = vcpus;
|
||||
|
||||
set_hvm_info_checksum(va_hvm);
|
||||
@@ -194,7 +193,6 @@ static int set_hvm_info(int xc_handle, uint32_t dom,
|
||||
munmap(va_map, PAGE_SIZE);
|
||||
|
||||
xc_set_hvm_param(xc_handle, dom, HVM_PARAM_APIC_ENABLED, apic);
|
||||
xc_set_hvm_param(xc_handle, dom, HVM_PARAM_PAE_ENABLED, pae);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -285,12 +283,14 @@ static int setup_guest(int xc_handle,
|
||||
goto error_out;
|
||||
}
|
||||
|
||||
if ( set_hvm_info(xc_handle, dom, page_array, vcpus, pae, acpi, apic) )
|
||||
if ( set_hvm_info(xc_handle, dom, page_array, vcpus, acpi, apic) )
|
||||
{
|
||||
ERROR("Couldn't set hvm info for HVM guest.\n");
|
||||
goto error_out;
|
||||
}
|
||||
|
||||
xc_set_hvm_param(xc_handle, dom, HVM_PARAM_PAE_ENABLED, pae);
|
||||
|
||||
if ( (e820_page = xc_map_foreign_range(
|
||||
xc_handle, dom, PAGE_SIZE, PROT_READ | PROT_WRITE,
|
||||
page_array[E820_MAP_PAGE >> PAGE_SHIFT])) == 0 )
|
||||
|
||||
@@ -17,7 +17,6 @@ struct hvm_info_table {
|
||||
uint8_t checksum;
|
||||
uint8_t acpi_enabled;
|
||||
uint8_t apic_enabled;
|
||||
uint8_t pae_enabled;
|
||||
uint32_t nr_vcpus;
|
||||
};
|
||||
|
||||
|
||||