Disable preadv/pwritev support
[qemu-kvm/fedora.git] / target-ppc / libkvm.h
blob80b6b06c86ac4e249f664521f30b0357d380c7b3
1 /*
2 * This header is for functions & variables that will ONLY be
3 * used inside libkvm for powerpc.
4 * THESE ARE NOT EXPOSED TO THE USER AND ARE ONLY FOR USE
5 * WITHIN LIBKVM.
7 * Copyright (C) 2006 Qumranet, Inc.
9 * Authors:
10 * Avi Kivity <avi@qumranet.com>
11 * Yaniv Kamay <yaniv@qumranet.com>
13 * Copyright 2007 IBM Corporation.
14 * Added by: Jerone Young <jyoung5@us.ibm.com>
16 * This work is licensed under the GNU LGPL license, version 2.
19 #ifndef KVM_POWERPC_H
20 #define KVM_POWERPC_H
22 #include "libkvm-all.h"
24 extern int kvm_page_size;
26 #define PAGE_SIZE kvm_page_size
27 #define PAGE_MASK (~(PAGE_SIZE - 1))
29 static inline void eieio(void)
31 asm volatile("eieio" : : : "memory");
34 #define smp_wmb() eieio()
36 #endif