| 1 | /* |
| 2 | * Allowed list of MSR for Privileged RAPL MSR helper commands for QEMU |
| 3 | * |
| 4 | * Copyright (C) 2023 Red Hat, Inc. <aharivel@redhat.com> |
| 5 | * |
| 6 | * Author: Anthony Harivel <aharivel@redhat.com> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; under version 2 of the License. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | /* |
| 22 | * Should stay in sync with the RAPL MSR |
| 23 | * in target/i386/cpu.h |
| 24 | */ |
| 25 | #define MSR_RAPL_POWER_UNIT 0x00000606 |
| 26 | #define MSR_PKG_POWER_LIMIT 0x00000610 |
| 27 | #define MSR_PKG_ENERGY_STATUS 0x00000611 |
| 28 | #define MSR_PKG_POWER_INFO 0x00000614 |