| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 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. |
|---|
| 14 | 3 | * |
|---|
| 15 | 4 | * Copyright SUSE Linux Products GmbH 2009 |
|---|
| 16 | 5 | * |
|---|
| .. | .. |
|---|
| 24 | 13 | #define XICS_XIRR 4 |
|---|
| 25 | 14 | #define XICS_MFRR 0xc |
|---|
| 26 | 15 | #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) |
|---|
| 27 | 19 | |
|---|
| 28 | 20 | /* Maximum number of threads per physical core */ |
|---|
| 29 | 21 | #define MAX_SMT_THREADS 8 |
|---|
| .. | .. |
|---|
| 127 | 119 | void __iomem *xive_tima_virt; |
|---|
| 128 | 120 | u32 saved_xirr; |
|---|
| 129 | 121 | 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 */ |
|---|
| 131 | 123 | u32 host_pmc[8]; |
|---|
| 132 | 124 | u64 host_purr; |
|---|
| 133 | 125 | u64 host_spurr; |
|---|