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

Re: Howto read MSR thermal under XEN-4.15.0


  • To: Julien Grall <julien@xxxxxxx>, Bobbi Sanchez <bobbisanchez@xxxxxx>, <Xen-users@xxxxxxxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 17 Jun 2021 12:17:19 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AHShtWa3JvGfOvnI+FTUDteO6jCJabqgR/rMfKbbsZc=; b=IdXYAFT2VPAnekflpvNPaEXLuAopIxIKi2zsA2f31fUwFY7GZO/tks9/cz7cGI7i/pOkVKslaSwoJ2Ou6BNsXXniv/swnyGL4Yi8TtREzG0rkfjCiijUoZKpfhWhI2m/bJaIejC3F9pE/OKN/yAyHsTCM6mwYOX1kkfhrPomv7ylvuos4QMoBbhB8y8zkSnO7qlwP2FKW7U6xVJOrgx6PoGh9UOvbJ8A6hY31u417Byr/FVkt6ELr9+nHDpZIGSLBPfZbWJ21K4OaO8wbQfwOFFGlRejEQdR//D8PLpKDr6prbdmCy7QWydckOkjOjfaOH1ABQhDaY4Penz1Y01K/g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KSPN6RnMHyi0Nj/En+JeHkNTHEO04AipcbKHCeNN8aNckDtI1bWE2PEc2OcEhD9DxqJDQZAQvGi7pR0yxlm6OWFr88hWBTE2Y458nVuiAswn4vVM26fgF2Pf6Qdn83K5kSVEJqHIKyoSuD6nzAO1oTI/ykmOJau0AvChgfnzx9+gTBBWQ5e3PqtbGZ1hc+S1lh9iZQ2ABPUcMIeASNgG+K2ZXvrSI2zxmF2BOyhAC/TBY4upbXsegbh84jGo99AXIFFQNRgudDmSSIEgSZfO1J8F3PYBvk9223SC5v2ksn3rEKiDhy79yzJbVQIDI+yr7svPRT+Wf7h1TJ6UjmPHlw==
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Delivery-date: Thu, 17 Jun 2021 11:17:42 +0000
  • Ironport-hdrordr: A9a23:mHhPq6v0uCfinclJcB0byN/07skCgIMji2hC6mlwRA09TyXGra 6TdaUguiMc1gx8ZJhBo7C90dq7MAzhHPlOkPUs1NaZLXTbUQ6TTb2KgrGSuwEIdxeOkdK1kJ 0QCZSWa+eAfmSS7/yKmTVQeuxIqLLsndHK9IWuukuFDzsaD52Ihz0JejpzeXcGIjWua6BJca Z0qvA33AZJLh8sH7WG7zQ+LqT+juyOsKijTQ8NBhYh5gXLpTS06ITiGxzd+hsFSTtAzZor7G CAymXCl+uemsD+7iWZ+37Y7pxQltek4txfBPaUgsxQDjn3kA6naKloRrXHljEop+OE7kosjb D30lgdFvU2z0mUUnC+oBPr1QWl+i0p8WXexViRhmamidDlRRohYvAxxr5xQ1/80Q4Nrdt82K VE0yayrJxMFy7Nmyz7+pzhSwxqrEypunAv+NRjz0C3abFuLYO5kLZvuH+8SPw7bWXHAcEcYa hT5fjnlbRrmQjwVQGegoEHq+bcLEjaHX+9MwM/U4KuomFrdUtCvjwlLfok7z89HaIGOu15Dt v/Q9JVfZF1P4UrhPFGdao8qfXeMB2FffuaChPtHb2gLtBeB07w
  • Ironport-sdr: T/7Mq5L7gJD9U1+nCJMJWHwL/47XAhvh7R/lFGQdXMZSFCuwaHHb6IEr7Bpz9oix5uKxA2ihbk VU+PTAFHTEGxv2MMQHPHBY/aUXja0BskAWD4ga0/ZODKGnr6q2HvUQqyH69CCoiSWC0y1IkKPw mcUl62gDKrsXZbr3SEfNIn4f3BON89HbpnYO7So8ByEq8Dvpdy2hh4x1YC/E+QjnbBHLDohOLm 6Bnxl1G58zbFt911qOWRmsaJIoWIw3FW5uOJOCACFcjf4fZs95jErOZsuo8n89NzTKkIVAU/gC ygA=
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

On 17/06/2021 12:09, Julien Grall wrote:
> (+ Andrew and Jan)
>
> Hi,
>
> On 16/06/2021 23:39, Bobbi Sanchez wrote:
>> Hi,
>>
>> how can i read the MSR Thermal Values under XEN-4.15.0 ?
>>
>> Usually without having XEN-4.15.0 installed i can read the MSR
>> Thermal Values like this:
>>
>> rdmsr -p 0 -d -f22:16 0x19c
>>
>> this works for my Core2Quod Q6600.
>>
>> But after having xen-4.15.0 installed and booted, same command shows
>> now: 0
>
> I believe the access was restricted as part of XSA-351 [1]. I am not
> sure if there are a safe generic way to access them. I will let Andrew
> and Jan commenting.

This method was never safe to begin with, because dom0 is just a VM and
can be migrated around.  If you pin dom0, then you're still can't access
registers who's scope is missing from where dom0 is pinned.

I'm afraid this is something which has never worked correctly under Xen,
but used to give enough of an illusion of working for people to think
that it did work.

Someone needs to come up with a plan to paravirtualise this interface,
probably using XENPLAT_resource_op, so tools in dom0 can actually read
the registers they think they're trying to access.

~Andrew




 


Rackspace

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