Anthony PERARD | 3285cf4 | 2010-08-19 12:27:56 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 Citrix Ltd. |
| 3 | * |
| 4 | * This work is licensed under the terms of the GNU GPL, version 2. See |
| 5 | * the COPYING file in the top-level directory. |
| 6 | * |
Paolo Bonzini | 6b620ca | 2012-01-13 17:44:23 +0100 | [diff] [blame] | 7 | * Contributions after 2012-01-13 are licensed under the terms of the |
| 8 | * GNU GPL, version 2 or (at your option) any later version. |
Anthony PERARD | 3285cf4 | 2010-08-19 12:27:56 +0100 | [diff] [blame] | 9 | */ |
| 10 | |
Peter Maydell | 21cbfe5 | 2016-01-26 18:17:06 +0000 | [diff] [blame] | 11 | #include "qemu/osdep.h" |
Anthony PERARD | 3285cf4 | 2010-08-19 12:27:56 +0100 | [diff] [blame] | 12 | #include "qemu-common.h" |
Paolo Bonzini | 0d09e41 | 2013-02-05 17:06:20 +0100 | [diff] [blame] | 13 | #include "hw/xen/xen.h" |
Paolo Bonzini | 022c62c | 2012-12-17 18:19:49 +0100 | [diff] [blame] | 14 | #include "exec/memory.h" |
Anthony PERARD | 39f4243 | 2012-10-03 13:48:19 +0000 | [diff] [blame] | 15 | #include "qmp-commands.h" |
Anthony PERARD | 3285cf4 | 2010-08-19 12:27:56 +0100 | [diff] [blame] | 16 | |
Anthony PERARD | 4144530 | 2010-07-16 14:55:39 +0100 | [diff] [blame] | 17 | int xen_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num) |
| 18 | { |
| 19 | return -1; |
| 20 | } |
| 21 | |
| 22 | void xen_piix3_set_irq(void *opaque, int irq_num, int level) |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | void xen_piix_pci_write_config_client(uint32_t address, uint32_t val, int len) |
| 27 | { |
| 28 | } |
| 29 | |
Wei Liu | f1dbf01 | 2012-04-12 10:01:43 +0000 | [diff] [blame] | 30 | void xen_hvm_inject_msi(uint64_t addr, uint32_t data) |
| 31 | { |
| 32 | } |
| 33 | |
Stefano Stabellini | 428c3ec | 2016-01-13 14:59:09 +0000 | [diff] [blame] | 34 | int xen_is_pirq_msi(uint32_t msi_data) |
| 35 | { |
| 36 | return 0; |
| 37 | } |
| 38 | |
Markus Armbruster | 37aa7a0 | 2016-01-14 16:09:39 +0100 | [diff] [blame] | 39 | void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size, MemoryRegion *mr, |
| 40 | Error **errp) |
Jun Nakajima | 432d268 | 2010-08-31 16:41:25 +0100 | [diff] [blame] | 41 | { |
| 42 | } |
| 43 | |
Anthony PERARD | 9c11a8a | 2010-06-30 17:50:10 +0100 | [diff] [blame] | 44 | qemu_irq *xen_interrupt_controller_init(void) |
| 45 | { |
| 46 | return NULL; |
| 47 | } |
| 48 | |
Avi Kivity | c65adf9 | 2011-12-18 16:40:50 +0200 | [diff] [blame] | 49 | void xen_register_framebuffer(MemoryRegion *mr) |
| 50 | { |
| 51 | } |
Anthony PERARD | 39f4243 | 2012-10-03 13:48:19 +0000 | [diff] [blame] | 52 | |
Anthony PERARD | 910b38e | 2012-10-03 13:48:45 +0000 | [diff] [blame] | 53 | void xen_modified_memory(ram_addr_t start, ram_addr_t length) |
| 54 | { |
| 55 | } |
Paul Durrant | a97d6fe | 2013-06-25 11:46:37 +0000 | [diff] [blame] | 56 | |
Markus Armbruster | dced4d2 | 2016-01-14 16:09:38 +0100 | [diff] [blame] | 57 | void xen_hvm_init(PCMachineState *pcms, MemoryRegion **ram_memory) |
Paul Durrant | a97d6fe | 2013-06-25 11:46:37 +0000 | [diff] [blame] | 58 | { |
Paul Durrant | a97d6fe | 2013-06-25 11:46:37 +0000 | [diff] [blame] | 59 | } |
Wei Liu | 04b0de0 | 2014-05-07 16:16:43 +0000 | [diff] [blame] | 60 | |
| 61 | void qmp_xen_set_global_dirty_log(bool enable, Error **errp) |
| 62 | { |
| 63 | } |