blob: e43fe42b9875308b49e13faa8a67ef91fe125200 [file] [log] [blame]
Alexander Graf3ae07892010-04-16 00:11:37 +02001/*
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 *
15 * Copyright SUSE Linux Products GmbH 2010
16 *
17 * Authors: Alexander Graf <agraf@suse.de>
18 */
19
20#ifndef __ASM_KVM_BOOK3S_64_H__
21#define __ASM_KVM_BOOK3S_64_H__
22
Paul Mackerrasde56a942011-06-29 00:21:34 +000023#ifdef CONFIG_KVM_BOOK3S_PR
Alexander Graf3ae07892010-04-16 00:11:37 +020024static inline struct kvmppc_book3s_shadow_vcpu *to_svcpu(struct kvm_vcpu *vcpu)
25{
26 return &get_paca()->shadow_vcpu;
27}
Paul Mackerrasde56a942011-06-29 00:21:34 +000028#endif
Alexander Graf3ae07892010-04-16 00:11:37 +020029
David Gibson54738c02011-06-29 00:22:41 +000030#define SPAPR_TCE_SHIFT 12
31
Alexander Graf3ae07892010-04-16 00:11:37 +020032#endif /* __ASM_KVM_BOOK3S_64_H__ */