Remove env->ready_for_interrupt_injection
[qemu-kvm/fedora.git] / kvm / libkvm / libkvm-ia64.c
blobf35a16c59ae662ee0e6ca01436afe83916abd9cf
1 /*
2 * libkvm-ia64.c :Kernel-based Virtual Machine control library for ia64.
4 * This library provides an API to control the kvm hardware virtualization
5 * module.
7 * Copyright (C) 2006 Qumranet
9 * Authors:
11 * Avi Kivity <avi@qumranet.com>
12 * Yaniv Kamay <yaniv@qumranet.com>
14 * Copyright (C) 2007 Intel
15 * Added by : Zhang Xiantao <xiantao.zhang@intel.com>
17 * This work is licensed under the GNU LGPL license, version 2.
21 #include "libkvm.h"
22 #include "kvm-ia64.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>
36 int kvm_arch_create_default_phys_mem(kvm_context_t kvm,
37 unsigned long phys_mem_bytes,
38 void **vm_mem)
40 int zfd;
42 zfd = open("/dev/zero", O_RDONLY);
43 if (zfd == -1) {
44 perror("open /dev/zero");
45 return -1;
47 mmap(*vm_mem + 0xa8000, 0x8000, PROT_READ|PROT_WRITE,
48 MAP_PRIVATE|MAP_FIXED, zfd, 0);
49 close(zfd);
51 return 0;
55 int kvm_alloc_kernel_memory(kvm_context_t kvm, unsigned long memory,
56 void **vm_mem)
58 return 0;
61 void *kvm_create_kernel_phys_mem(kvm_context_t kvm, unsigned long phys_start,
62 unsigned long len, int log, int writable)
64 return NULL;
67 int kvm_arch_create(kvm_context_t kvm, unsigned long phys_mem_bytes,
68 void **vm_mem)
70 int r;
72 r = kvm_init_coalesced_mmio(kvm);
73 if (r < 0)
74 return r;
76 return 0;
79 int kvm_arch_run(struct kvm_run *run,kvm_context_t kvm, int vcpu)
81 int r = 0;
83 switch (run->exit_reason) {
84 default:
85 r = 1;
86 break;
89 return r;
92 void kvm_show_code(kvm_context_t kvm, int vcpu)
94 fprintf(stderr, "kvm_show_code not supported yet!\n");
97 void kvm_show_regs(kvm_context_t kvm, int vcpu)
99 fprintf(stderr,"kvm_show_regs not supportted today!\n");