qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

acpi: add aml builder stubs

Needed when moving aml builder code to devices.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20200429140003.7336-3-kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Gerd Hoffmann and committed by
Michael S. Tsirkin
17d08ba4 0f8d656b

+81 -2
+2 -2
hw/acpi/Makefile.objs
··· 20 20 common-obj-$(CONFIG_IPMI) += ipmi.o 21 21 common-obj-$(call lnot,$(CONFIG_IPMI)) += ipmi-stub.o 22 22 else 23 - common-obj-y += acpi-stub.o 23 + common-obj-y += acpi-stub.o aml-build-stub.o 24 24 endif 25 - common-obj-$(CONFIG_ALL) += acpi-stub.o acpi-x86-stub.o ipmi-stub.o 25 + common-obj-$(CONFIG_ALL) += acpi-stub.o aml-build-stub.o acpi-x86-stub.o ipmi-stub.o
+79
hw/acpi/aml-build-stub.c
··· 1 + /* 2 + * ACPI aml builder stubs for platforms that don't support ACPI. 3 + * 4 + * Copyright (c) 2006 Fabrice Bellard 5 + * Copyright (c) 2016 Red Hat, Inc. 6 + * 7 + * This program is free software; you can redistribute it and/or modify 8 + * it under the terms of the GNU General Public License as published by 9 + * the Free Software Foundation; either version 2 of the License, or 10 + * (at your option) any later version. 11 + * 12 + * This program is distributed in the hope that it will be useful, 13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 + * GNU General Public License for more details. 16 + * 17 + * You should have received a copy of the GNU General Public License along 18 + * with this program; if not, see <http://www.gnu.org/licenses/>. 19 + */ 20 + 21 + #include "qemu/osdep.h" 22 + #include "hw/acpi/acpi.h" 23 + #include "hw/acpi/aml-build.h" 24 + 25 + void aml_append(Aml *parent_ctx, Aml *child) 26 + { 27 + } 28 + 29 + Aml *aml_resource_template(void) 30 + { 31 + return NULL; 32 + } 33 + 34 + Aml *aml_device(const char *name_format, ...) 35 + { 36 + return NULL; 37 + } 38 + 39 + Aml *aml_eisaid(const char *str) 40 + { 41 + return NULL; 42 + } 43 + 44 + Aml *aml_name_decl(const char *name, Aml *val) 45 + { 46 + return NULL; 47 + } 48 + 49 + Aml *aml_io(AmlIODecode dec, uint16_t min_base, uint16_t max_base, 50 + uint8_t aln, uint8_t len) 51 + { 52 + return NULL; 53 + } 54 + 55 + Aml *aml_irq_no_flags(uint8_t irq) 56 + { 57 + return NULL; 58 + } 59 + 60 + Aml *aml_int(const uint64_t val) 61 + { 62 + return NULL; 63 + } 64 + 65 + Aml *aml_package(uint8_t num_elements) 66 + { 67 + return NULL; 68 + } 69 + 70 + Aml *aml_dma(AmlDmaType typ, AmlDmaBusMaster bm, AmlTransferSize sz, 71 + uint8_t channel) 72 + { 73 + return NULL; 74 + } 75 + 76 + Aml *aml_buffer(int buffer_size, uint8_t *byte_list) 77 + { 78 + return NULL; 79 + }