Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / include / linux / kvm_types.h
blob1c4e46decb226658a5d35b36444bf21f6a39fd6d
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 as published by
4 * the Free Software Foundation; either version 2 of the License.
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.
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.
17 #ifndef __KVM_TYPES_H__
18 #define __KVM_TYPES_H__
20 #include <asm/types.h>
23 * Address types:
25 * gva - guest virtual address
26 * gpa - guest physical address
27 * gfn - guest frame number
28 * hva - host virtual address
29 * hpa - host physical address
30 * hfn - host frame number
33 typedef unsigned long gva_t;
34 typedef u64 gpa_t;
35 typedef unsigned long gfn_t;
37 typedef unsigned long hva_t;
38 typedef u64 hpa_t;
39 typedef unsigned long hfn_t;
41 struct kvm_pio_request {
42 unsigned long count;
43 int cur_count;
44 struct page *guest_pages[2];
45 unsigned guest_page_offset;
46 int in;
47 int port;
48 int size;
49 int string;
50 int down;
51 int rep;
54 #endif /* __KVM_TYPES_H__ */