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

« back to all changes in this revision

Viewing changes to target-ia64/libkvm.c

  • 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
 * libkvm-ia64.c :Kernel-based Virtual Machine control library for ia64.
 
3
 *
 
4
 * This library provides an API to control the kvm hardware virtualization
 
5
 * module.
 
6
 *
 
7
 * Copyright (C) 2006 Qumranet
 
8
 *
 
9
 * Authors:
 
10
 *
 
11
 *  Avi Kivity <avi@qumranet.com>
 
12
 *  Yaniv Kamay <yaniv@qumranet.com>
 
13
 *
 
14
 * Copyright (C) 2007 Intel
 
15
 * Added by : Zhang Xiantao <xiantao.zhang@intel.com>
 
16
 *
 
17
 * This work is licensed under the GNU LGPL license, version 2.
 
18
 *
 
19
 */
 
20
 
 
21
#include "libkvm-all.h"
 
22
#include "libkvm.h"
 
23
#include <errno.h>
 
24
#include <sys/ioctl.h>
 
25
#include <string.h>
 
26
#include <unistd.h>
 
27
#include <stropts.h>
 
28
#include <sys/mman.h>
 
29
#include <stdio.h>
 
30
#include <errno.h>
 
31
#include <sys/types.h>
 
32
#include <sys/stat.h>
 
33
#include <fcntl.h>
 
34
#include <stdlib.h>
 
35
 
 
36
int kvm_arch_create(kvm_context_t kvm, unsigned long phys_mem_bytes,
 
37
                        void **vm_mem)
 
38
{
 
39
        int r;
 
40
 
 
41
        r = kvm_init_coalesced_mmio(kvm);
 
42
        if (r < 0)
 
43
                return r;
 
44
 
 
45
        return 0;
 
46
}
 
47
 
 
48
int kvm_arch_run(kvm_vcpu_context_t vcpu)
 
49
{
 
50
        int r = 0;
 
51
 
 
52
        switch (vcpu->run->exit_reason) {
 
53
                default:
 
54
                        r = 1;
 
55
                        break;
 
56
        }
 
57
 
 
58
        return r;
 
59
}
 
60
 
 
61
void kvm_show_code(kvm_vcpu_context_t vcpu)
 
62
{
 
63
        fprintf(stderr, "kvm_show_code not supported yet!\n");
 
64
}
 
65
 
 
66
void kvm_show_regs(kvm_vcpu_context_t vcpu)
 
67
{
 
68
        fprintf(stderr,"kvm_show_regs not supportted today!\n");
 
69
}
 
70
 
 
71
int kvm_create_memory_alias(kvm_context_t kvm,
 
72
                            uint64_t phys_start,
 
73
                            uint64_t len,
 
74
                            uint64_t target_phys)
 
75
{
 
76
    return 0;
 
77
}
 
78
 
 
79
int kvm_destroy_memory_alias(kvm_context_t kvm, uint64_t phys_start)
 
80
{
 
81
        return 0;
 
82
}