hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/include/asm/kvm_book3s_asm.h
....@@ -1,16 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
2
- * This program is free software; you can redistribute it and/or modify
3
- * it under the terms of the GNU General Public License, version 2, as
4
- * published by the Free Software Foundation.
5
- *
6
- * This program is distributed in the hope that it will be useful,
7
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
8
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
- * GNU General Public License for more details.
10
- *
11
- * You should have received a copy of the GNU General Public License
12
- * along with this program; if not, write to the Free Software
13
- * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
143 *
154 * Copyright SUSE Linux Products GmbH 2009
165 *
....@@ -24,6 +13,9 @@
2413 #define XICS_XIRR 4
2514 #define XICS_MFRR 0xc
2615 #define XICS_IPI 2 /* interrupt source # for IPIs */
16
+
17
+/* LPIDs we support with this build -- runtime limit may be lower */
18
+#define KVMPPC_NR_LPIDS (LPID_RSVD + 1)
2719
2820 /* Maximum number of threads per physical core */
2921 #define MAX_SMT_THREADS 8
....@@ -127,7 +119,7 @@
127119 void __iomem *xive_tima_virt;
128120 u32 saved_xirr;
129121 u64 dabr;
130
- u64 host_mmcr[7]; /* MMCR 0,1,A, SIAR, SDAR, MMCR2, SIER */
122
+ u64 host_mmcr[10]; /* MMCR 0,1,A, SIAR, SDAR, MMCR2, SIER, MMCR3, SIER2/3 */
131123 u32 host_pmc[8];
132124 u64 host_purr;
133125 u64 host_spurr;