]> Pileus Git - ~andy/linux/blob - arch/powerpc/kernel/kvm_emul.S
5cfa2aeeecb0db21c81b046fd72bbcf867a04850
[~andy/linux] / arch / powerpc / kernel / kvm_emul.S
1 /*
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 #include <asm/ppc_asm.h>
21 #include <asm/kvm_asm.h>
22 #include <asm/reg.h>
23 #include <asm/page.h>
24 #include <asm/asm-offsets.h>
25
26 /* Hypercall entry point. Will be patched with device tree instructions. */
27
28 .global kvm_hypercall_start
29 kvm_hypercall_start:
30         li      r3, -1
31         nop
32         nop
33         nop
34         blr
35
36 #define KVM_MAGIC_PAGE          (-4096)