ia64/xen-unstable

view tools/ioemu/target-i386-dm/i8259-dm.c @ 15841:c5f735271e22

[IA64] Foreign p2m: Fix vti domain builder.

It should set arch_domain::convmem_end.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu Sep 06 13:48:43 2007 -0600 (2007-09-06)
parents f555a90bcc37
children
line source
1 /* Xen 8259 stub for interrupt controller emulation
2 *
3 * Copyright (c) 2003-2004 Fabrice Bellard
4 * Copyright (c) 2005 Intel corperation
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24 #include "vl.h"
25 #include "xenctrl.h"
26 #include <xen/hvm/ioreq.h>
27 #include <stdio.h>
28 #include "cpu.h"
29 #include "cpu-all.h"
31 struct PicState2 {
32 };
34 void pic_set_irq_new(void *opaque, int irq, int level)
35 {
36 xc_hvm_set_isa_irq_level(xc_handle, domid, irq, level);
37 }
39 /* obsolete function */
40 void pic_set_irq(int irq, int level)
41 {
42 pic_set_irq_new(isa_pic, irq, level);
43 }
45 void irq_info(void)
46 {
47 term_printf("irq statistic code not compiled.\n");
48 }
50 void pic_info(void)
51 {
52 term_printf("pic_info code not compiled.\n");
53 }
55 PicState2 *pic_init(IRQRequestFunc *irq_request, void *irq_request_opaque)
56 {
57 PicState2 *s;
58 s = qemu_mallocz(sizeof(PicState2));
59 if (!s)
60 return NULL;
61 return s;
62 }
64 void pic_set_alt_irq_func(PicState2 *s, SetIRQFunc *alt_irq_func,
65 void *alt_irq_opaque)
66 {
67 }