mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
x86: provide Dom0 access to PPIN via XENPF_resource_op
It was requested that we provide a way independent of the MCE reporting interface that Dom0 software could use to get hold of the values for particular CPUs. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
dea5d6dd05
commit
5c13ed79f3
1 file changed
+4
@@ -30,6 +30,7 @@
|
||||
#include <asm/mtrr.h>
|
||||
#include <asm/io_apic.h>
|
||||
#include <asm/setup.h>
|
||||
#include "cpu/mcheck/mce.h"
|
||||
#include "cpu/mtrr/mtrr.h"
|
||||
#include <xsm/xsm.h>
|
||||
|
||||
@@ -94,6 +95,9 @@ void check_resource_access(struct resource_access *ra)
|
||||
switch ( entry->u.cmd )
|
||||
{
|
||||
case XEN_RESOURCE_OP_MSR_READ:
|
||||
if ( ppin_msr && entry->idx == ppin_msr )
|
||||
break;
|
||||
/* fall through */
|
||||
case XEN_RESOURCE_OP_MSR_WRITE:
|
||||
if ( entry->idx >> 32 )
|
||||
ret = -EINVAL;
|
||||
|
||||