~ubuntu-branches/ubuntu/wily/qemu-kvm-spice/wily

« back to all changes in this revision

Viewing changes to kvm/libkvm/kvm-powerpc.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-10-19 10:44:56 UTC
  • Revision ID: james.westby@ubuntu.com-20111019104456-xgvskumk3sxi97f4
Tags: upstream-0.15.0+noroms
ImportĀ upstreamĀ versionĀ 0.15.0+noroms

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
6
 *
 
7
 * Copyright (C) 2006 Qumranet, Inc.
 
8
 *
 
9
 * Authors:
 
10
 *      Avi Kivity   <avi@qumranet.com>
 
11
 *      Yaniv Kamay  <yaniv@qumranet.com>
 
12
 *
 
13
 * Copyright 2007 IBM Corporation.
 
14
 * Added by: Jerone Young <jyoung5@us.ibm.com>
 
15
 *
 
16
 * This work is licensed under the GNU LGPL license, version 2.
 
17
 */
 
18
 
 
19
#ifndef KVM_POWERPC_H
 
20
#define KVM_POWERPC_H
 
21
 
 
22
#include "kvm-common.h"
 
23
 
 
24
extern int kvm_page_size;
 
25
 
 
26
#define PAGE_SIZE kvm_page_size
 
27
#define PAGE_MASK (~(PAGE_SIZE - 1))
 
28
 
 
29
static inline void eieio(void)
 
30
{
 
31
        asm volatile("eieio" : : : "memory");
 
32
}
 
33
 
 
34
#define smp_wmb()       eieio()
 
35
 
 
36
#endif