summaryrefslogtreecommitdiff
path: root/libkvm/kvm-powerpc.h
blob: b09511c1c0b51fb63e49cb71c69670ee42faa98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * This header is for functions & variables that will ONLY be
 * used inside libkvm for powerpc.
 * THESE ARE NOT EXPOSED TO THE USER AND ARE ONLY FOR USE
 * WITHIN LIBKVM.
 *
 * Copyright (C) 2006 Qumranet, Inc.
 *
 * Authors:
 *	Avi Kivity   <avi@qumranet.com>
 *	Yaniv Kamay  <yaniv@qumranet.com>
 *
 * Copyright 2007 IBM Corporation.
 * Added by: Jerone Young <jyoung5@us.ibm.com>
 *
 * This work is licensed under the GNU LGPL license, version 2.
 */

#ifndef KVM_POWERPC_H
#define KVM_POWERPC_H

#include "kvm-common.h"

extern int kvm_page_size;

#define PAGE_SIZE kvm_page_size
#define PAGE_MASK (~(PAGE_SIZE - 1))

static inline void eieio(void)
{
	asm volatile("eieio" : : : "memory");
}

#define smp_wmb()	eieio()

#endif