[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 3/3] 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@xxxxxxxx> --- v2: New. TBD: I couldn't identify any suitable utility under tools/misc/ that I would have felt like making the frontend of this extension. --- a/xen/arch/x86/platform_hypercall.c +++ b/xen/arch/x86/platform_hypercall.c @@ -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 resour 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; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |