Disable preadv/pwritev support
[qemu-kvm/fedora.git] / target-i386 / libkvm.h
blobd85b6a1e0ee491532751a4ded6fd521591795c9f
1 /*
2 * This header is for functions & variables that will ONLY be
3 * used inside libkvm for x86.
4 * THESE ARE NOT EXPOSED TO THE USER AND ARE ONLY FOR USE
5 * WITHIN LIBKVM.
7 * derived from libkvm.c
9 * Copyright (C) 2006 Qumranet, Inc.
11 * Authors:
12 * Avi Kivity <avi@qumranet.com>
13 * Yaniv Kamay <yaniv@qumranet.com>
15 * This work is licensed under the GNU LGPL license, version 2.
18 #ifndef KVM_X86_H
19 #define KVM_X86_H
21 #define PAGE_SIZE 4096ul
22 #define PAGE_MASK (~(PAGE_SIZE - 1))
24 int kvm_set_tss_addr(kvm_context_t kvm, unsigned long addr);
26 #define smp_wmb() asm volatile("" ::: "memory")
28 #endif