xref: /illumos-kvm-cmd/target-ia64/libkvm.h (revision 68396ea9)
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.
6  *
7  * derived from libkvm.c
8  *
9  * Copyright (C) 2006 Qumranet, Inc.
10  *
11  * Authors:
12  *	Avi Kivity   <avi@qumranet.com>
13  *	Yaniv Kamay  <yaniv@qumranet.com>
14  *
15  * This work is licensed under the GNU LGPL license, version 2.
16  */
17 
18 #ifndef KVM_IA64_H
19 #define KVM_IA64_H
20 
21 #include "libkvm-all.h"
22 
23 extern int kvm_page_size;
24 
25 #define PAGE_SIZE kvm_page_size
26 #define PAGE_MASK (~(kvm_page_size - 1))
27 
28 #define ia64_mf()	asm volatile ("mf" ::: "memory")
29 #define smp_wmb()	ia64_mf()
30 
31 #endif
32