# HG changeset patch # User Keir Fraser # Date 1204715792 0 # Node ID f85b379fa9436be0ecd733d7bedbebdf1838a310 # Parent 86e64b684fb2751f8d2db7e07e88da8505008255 x86 hvm: Remove global 'hap' boot parameter now that their is a per-domain configuration option. Signed-off-by: Keir Fraser Index: xen-3.2-testing/xen/arch/x86/hvm/hvm.c =================================================================== --- xen-3.2-testing.orig/xen/arch/x86/hvm/hvm.c +++ xen-3.2-testing/xen/arch/x86/hvm/hvm.c @@ -50,16 +50,6 @@ #include #include -/* - * Xen command-line option to allow/disallow hardware-assisted paging. - * Since the phys-to-machine table of AMD NPT is in host format, 32-bit Xen - * can only support guests using NPT with up to a 4GB memory map. Therefore - * we disallow HAP by default on PAE Xen (by default we want to support an - * 8GB pseudophysical memory map for HVM guests on a PAE host). - */ -static int opt_hap_permitted = (CONFIG_PAGING_LEVELS != 3); -boolean_param("hap", opt_hap_permitted); - int hvm_enabled __read_mostly; unsigned int opt_hvm_debug_level __read_mostly; @@ -87,12 +77,7 @@ void hvm_enable(struct hvm_function_tabl hvm_enabled = 1; if ( hvm_funcs.hap_supported ) - { - if ( !opt_hap_permitted ) - hvm_funcs.hap_supported = 0; - printk("HVM: Hardware Assisted Paging detected %s.\n", - hvm_funcs.hap_supported ? "and enabled" : "but disabled"); - } + printk("HVM: Hardware Assisted Paging detected.\n"); } void hvm_set_guest_tsc(struct vcpu *v, u64 guest_tsc)