[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Print a message if no vpmu support for Intel cpu


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
  • Date: Tue, 16 Nov 2010 11:33:26 +0100
  • Delivery-date: Tue, 16 Nov 2010 02:34:15 -0800
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:User-Agent: X-KMail-Markup:MIME-Version:Content-Type:Message-Id; b=otsvX/C20hnLeq7os2y1piPVIZZ412HNCMI43rd8m+AAvC3DPnSH7Tg0 kkV5L5VJYcbkuSxh9KKEEt2aNJtZ9mas+C1OBT1lU7obXT7PQYjt25u1D 15KUmYPSzfj/O/8qpmrLM0zJ18Wv4HnKj4wQUIoZwP1Lv92i+IvPK0Nq4 Hb0mYgjZ95r8ri10652rcHRfcYrKZmVs2Uwxbdtt/z5OUIu/fMZEymocN pc4Ptg7o5sSzr6Hfx4zX3Adj5TkxU;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Print a message if there is no vpmu support for this Intel cpu.

Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>

diff -r 87f248de5230 -r 8902695abe34 xen/arch/x86/hvm/vpmu.c

--- a/xen/arch/x86/hvm/vpmu.c Mon Nov 15 09:31:38 2010 +0000

+++ b/xen/arch/x86/hvm/vpmu.c Tue Nov 16 11:22:39 2010 +0100

@@ -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;

--

Company details: http://ts.fujitsu.com/imprint.html

Attachment: vpmu_support.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.