Print a message if no vpmu support for Intel cpu
PATCH 1/1 Print a message if no vpmu support for Intel cpu
Print a message if there is no vpmu support for this Intel cpu.
Signed-off-by Dietmar Hahn <[email protected]>
xen/arch/x86/hvm/vpmu.c Tue Nov 16 11:22:39 2010 +0100 renamed from xen/arch/x86/hvm/vpmu.c Mon Nov 15 09:31:38 2010 +0000 +13 -0
@@ -115,6 +115,7 @@ case X86_VENDOR_INTEL: { + int supported = 1; if ( family == 6 ) { switch ( cpu_model )
@@ -125,8 +126,20 @@ case 29: vpmu->arch_vpmu_ops = &core2_vpmu_ops; break; + default: + supported = 0; } } + else + supported = 0; + + if ( !supported ) + { + printk("VMPU: Initialization failed. " + "Intel processor family %d model %d has not " + "been supported\n", family, cpu_model); + return; + } } break;
Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html
# HG changeset patch
# User Dietmr Hahn <[email protected]>
# Date 1289902959 -3600
# Node ID 8902695abe3412e642c3700855e6788981128313
# Parent 87f248de52304bc96a80dc093250fed0197f37e0 Print a message if there is no vpmu support for this Intel cpu.
Signed-off-by Dietmar Hahn <[email protected]>
xen/arch/x86/hvm/vpmu.c +13 -0
@@ -115,6 +115,7 @@case X86_VENDOR_INTEL : { +int supported =1 ;if ( family ==6 ) { switch ( cpu_model )
@@ -125,8 +126,20 @@case 29 : vpmu->arch_vpmu_ops = &core2_vpmu_ops;break ; +default : + supported =0 ; } } +else + supported =0 ; + +if ( !supported ) + { +printk ("VMPU: Initialization failed. " +"Intel processor family %d model %d has not " +"been supported\n" , family, cpu_model); +return ; + } }break ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel