qemu-kvm: Use upstream qemu_mutex_lock/unlock_iothread
[qemu-kvm.git] / kvm / libkvm / kvm-powerpc.h
blobb09511c1c0b51fb63e49cb71c69670ee42faa98a
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 "kvm-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()
36 #endif