| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2010 SUSE Linux Products GmbH. All rights reserved. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Authors: |
|---|
| 5 | 6 | * Alexander Graf <agraf@suse.de> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License, version 2, as |
|---|
| 9 | | - * published by the Free Software Foundation. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | | - * |
|---|
| 16 | | - * You should have received a copy of the GNU General Public License |
|---|
| 17 | | - * along with this program; if not, write to the Free Software |
|---|
| 18 | | - * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|---|
| 19 | 7 | */ |
|---|
| 20 | 8 | |
|---|
| 21 | 9 | #include <linux/kvm_host.h> |
|---|
| .. | .. |
|---|
| 368 | 356 | /* From mm/mmu_context_hash32.c */ |
|---|
| 369 | 357 | #define CTX_TO_VSID(c, id) ((((c) * (897 * 16)) + (id * 0x111)) & 0xffffff) |
|---|
| 370 | 358 | |
|---|
| 371 | | -int kvmppc_mmu_init(struct kvm_vcpu *vcpu) |
|---|
| 359 | +int kvmppc_mmu_init_pr(struct kvm_vcpu *vcpu) |
|---|
| 372 | 360 | { |
|---|
| 373 | 361 | struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); |
|---|
| 374 | 362 | int err; |
|---|