ia64/xen-unstable

changeset 18987:2c5a2e99a1d6

vmx: Print advanced features during boot
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jan 05 11:52:34 2009 +0000 (2009-01-05)
parents d6889b3b6423
children d77f66f89c04
files xen/arch/x86/hvm/vmx/vmcs.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vmx/vmcs.c	Mon Jan 05 11:19:16 2009 +0000
     1.2 +++ b/xen/arch/x86/hvm/vmx/vmcs.c	Mon Jan 05 11:52:34 2009 +0000
     1.3 @@ -55,6 +55,25 @@ static DEFINE_PER_CPU(struct list_head, 
     1.4  
     1.5  static u32 vmcs_revision_id __read_mostly;
     1.6  
     1.7 +static void __init vmx_display_features(void)
     1.8 +{
     1.9 +    int printed = 0;
    1.10 +
    1.11 +    printk("VMX: Supported advanced features:\n");
    1.12 +
    1.13 +#define P(p,s) if ( p ) { printk(" - %s\n", s); printed = 1; }
    1.14 +    P(cpu_has_vmx_virtualize_apic_accesses, "APIC MMIO access virtualisation");
    1.15 +    P(cpu_has_vmx_tpr_shadow, "APIC TPR shadow");
    1.16 +    P(cpu_has_vmx_ept, "Extended Page Tables (EPT)");
    1.17 +    P(cpu_has_vmx_vpid, "Virtual-Processor Identifiers (VPID)");
    1.18 +    P(cpu_has_vmx_vnmi, "Virtual NMI");
    1.19 +    P(cpu_has_vmx_msr_bitmap, "MSR direct-access bitmap");
    1.20 +#undef P
    1.21 +
    1.22 +    if ( !printed )
    1.23 +        printk(" - none\n");
    1.24 +}
    1.25 +
    1.26  static u32 adjust_vmx_controls(u32 ctl_min, u32 ctl_opt, u32 msr)
    1.27  {
    1.28      u32 vmx_msr_low, vmx_msr_high, ctl = ctl_min | ctl_opt;
    1.29 @@ -169,6 +188,7 @@ static void vmx_init_vmcs_config(void)
    1.30          vmx_vmexit_control         = _vmx_vmexit_control;
    1.31          vmx_vmentry_control        = _vmx_vmentry_control;
    1.32          cpu_has_vmx_ins_outs_instr_info = !!(vmx_basic_msr_high & (1U<<22));
    1.33 +        vmx_display_features();
    1.34      }
    1.35      else
    1.36      {