mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Introduced some new xl commands to enable/disable Cache Monitoring Technology(CMT) feature. The following two commands is to attach/detach the CMT feature to/from a certain domain. $ xl psr-cmt-attach domid $ xl psr-cmt-detach domid This command is to display the CMT information, such as L3 cache occupancy. $ xl psr-cmt-show cache_occupancy <domid> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
37 lines
944 B
C
37 lines
944 B
C
/*
|
|
* xc_msr_x86.h
|
|
*
|
|
* MSR definition macros
|
|
*
|
|
* Copyright (C) 2014 Intel Corporation
|
|
* Author Dongxiao Xu <dongxiao.xu@intel.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published
|
|
* by the Free Software Foundation; version 2.1 only. with the special
|
|
* exception on linking described in file LICENSE.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*/
|
|
|
|
#ifndef XC_MSR_X86_H
|
|
#define XC_MSR_X86_H
|
|
|
|
#define MSR_IA32_CMT_EVTSEL 0x00000c8d
|
|
#define MSR_IA32_CMT_CTR 0x00000c8e
|
|
|
|
#endif
|
|
|
|
/*
|
|
* Local variables:
|
|
* mode: C
|
|
* c-file-style: "BSD"
|
|
* c-basic-offset: 4
|
|
* tab-width: 4
|
|
* indent-tabs-mode: nil
|
|
* End:
|
|
*/
|