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
7 * Copyright (C) 2006 Qumranet, Inc.
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.
22 #include "libkvm-common.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()