mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
* Log filtering from Alex and Peter
* Chardev fix from Marc-André * config.status tweak from David * Header file tweaks from Markus, myself and Veronia (Outreachy candidate) * get_ticks_per_sec() removal from Rutuja (Outreachy candidate) * Coverity fix from myself * PKE implementation from myself, based on rth's XSAVE support -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJW9ErPAAoJEL/70l94x66DJfEH/A/QkMpAhrgNdyVsahzsGrzE wx5gHFIc1nBYxyr62w4apUb5jPB7zaXu0LA7EAWDeAe0pyP8hZzLT9kJyOEDsuJu zwKN2QeLSNMtPbnbKN0I/YQ2za2xX1V5ruhSeOJoVslUI214hgnAURaGshhQNzuZ 2CluDT9KgL5cQifAnKs5kJrwhIYShYNQB+1eDC/7wk28dd/EH+sPALIoF+rqrSmt Zu4Mdqd+9Ns+oKOjA6br9ULq/Hzg0aDfY82J+XLVVqfF3PXQe8rTDmuMf/7jTn+M Un7ZOcei9oZF2/9vfAfKQpDCcgD9HvOUSbgqV/ubmkPPmN/LNJzeKj0fBhrRN+Y= =K12D -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging * Log filtering from Alex and Peter * Chardev fix from Marc-André * config.status tweak from David * Header file tweaks from Markus, myself and Veronia (Outreachy candidate) * get_ticks_per_sec() removal from Rutuja (Outreachy candidate) * Coverity fix from myself * PKE implementation from myself, based on rth's XSAVE support # gpg: Signature made Thu 24 Mar 2016 20:15:11 GMT using RSA key ID 78C7AE83 # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" # gpg: aka "Paolo Bonzini <pbonzini@redhat.com>" * remotes/bonzini/tags/for-upstream: (28 commits) target-i386: implement PKE for TCG config.status: Pass extra parameters char: translate from QIOChannel error to errno exec: fix error handling in file_ram_alloc cputlb: modernise the debug support qemu-log: support simple pid substitution for logs target-arm: dfilter support for in_asm qemu-log: dfilter-ise exec, out_asm, op and opt_op qemu-log: new option -dfilter to limit output qemu-log: Improve the "exec" TB execution logging qemu-log: Avoid function call for disabled qemu_log_mask logging qemu-log: correct help text for -d cpu tcg: pass down TranslationBlock to tcg_code_gen util: move declarations out of qemu-common.h Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND hw: explicitly include qemu-common.h and cpu.h include/crypto: Include qapi-types.h or qemu/bswap.h instead of qemu-common.h isa: Move DMA_transfer_handler from qemu-common.h to hw/isa/isa.h Move ParallelIOArg from qemu-common.h to sysemu/char.h Move QEMU_ALIGN_*() from qemu-common.h to qemu/osdep.h ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Conflicts: scripts/clean-includes
This commit is contained in:
commit
84a5a80148
620 changed files with 1774 additions and 755 deletions
|
@ -19,7 +19,6 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "qemu/typedefs.h"
|
||||
#include "qemu/notify.h"
|
||||
#include "qemu/option.h"
|
||||
#include "exec/memory.h"
|
||||
|
@ -155,7 +154,7 @@ void acpi_pm_tmr_reset(ACPIREGS *ar);
|
|||
static inline int64_t acpi_pm_tmr_get_clock(void)
|
||||
{
|
||||
return muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), PM_TIMER_FREQUENCY,
|
||||
get_ticks_per_sec());
|
||||
NANOSECONDS_PER_SECOND);
|
||||
}
|
||||
|
||||
/* PM1a_EVT: piix and ich9 don't implement PM1b. */
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#ifndef HW_ACPI_PCIHP_H
|
||||
#define HW_ACPI_PCIHP_H
|
||||
|
||||
#include <qemu/typedefs.h>
|
||||
#include "hw/acpi/acpi.h"
|
||||
#include "migration/vmstate.h"
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef HW_ACPI_PIIX4_H
|
||||
#define HW_ACPI_PIIX4_H
|
||||
|
||||
#include "qemu/typedefs.h"
|
||||
|
||||
Object *piix4_pm_find(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#ifndef HW_ACPI_TCO_H
|
||||
#define HW_ACPI_TCO_H
|
||||
|
||||
#include "qemu/typedefs.h"
|
||||
#include "qemu-common.h"
|
||||
|
||||
/* As per ICH9 spec, the internal timer has an error of ~0.6s on every tick */
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef HW_BOARDS_H
|
||||
#define HW_BOARDS_H
|
||||
|
||||
#include "qemu/typedefs.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "sysemu/accel.h"
|
||||
#include "hw/qdev.h"
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#define HW_CHAR_DIGIC_UART_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/typedefs.h"
|
||||
|
||||
#define TYPE_DIGIC_UART "digic-uart"
|
||||
#define DIGIC_UART(obj) \
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#define HOTPLUG_H
|
||||
|
||||
#include "qom/object.h"
|
||||
#include "qemu/typedefs.h"
|
||||
|
||||
#define TYPE_HOTPLUG_HANDLER "hotplug-handler"
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#ifndef QEMU_HW_H
|
||||
#define QEMU_HW_H
|
||||
|
||||
#include "qemu-common.h"
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY) && !defined(NEED_CPU_H)
|
||||
#include "exec/cpu-common.h"
|
||||
|
@ -13,6 +12,7 @@
|
|||
#include "block/aio.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "qemu/log.h"
|
||||
#include "qemu/module.h"
|
||||
|
||||
#ifdef NEED_CPU_H
|
||||
#if TARGET_LONG_BITS == 64
|
||||
|
@ -41,6 +41,8 @@ typedef void QEMUResetHandler(void *opaque);
|
|||
void qemu_register_reset(QEMUResetHandler *func, void *opaque);
|
||||
void qemu_unregister_reset(QEMUResetHandler *func, void *opaque);
|
||||
|
||||
void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
|
||||
|
||||
#ifdef NEED_CPU_H
|
||||
#if TARGET_LONG_BITS == 64
|
||||
#define VMSTATE_UINTTL_V(_f, _s, _v) \
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define HW_PC_H
|
||||
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/typedefs.h"
|
||||
#include "exec/memory.h"
|
||||
#include "hw/boards.h"
|
||||
#include "hw/isa/isa.h"
|
||||
|
|
|
@ -11,7 +11,7 @@ typedef struct I8257Regs {
|
|||
uint8_t pageh;
|
||||
uint8_t dack;
|
||||
uint8_t eop;
|
||||
DMA_transfer_handler transfer_handler;
|
||||
IsaDmaTransferHandler transfer_handler;
|
||||
void *opaque;
|
||||
} I8257Regs;
|
||||
|
||||
|
|
|
@ -54,6 +54,9 @@ typedef enum {
|
|||
ISADMA_TRANSFER_ILLEGAL,
|
||||
} IsaDmaTransferMode;
|
||||
|
||||
typedef int (*IsaDmaTransferHandler)(void *opaque, int nchan, int pos,
|
||||
int size);
|
||||
|
||||
typedef struct IsaDmaClass {
|
||||
InterfaceClass parent;
|
||||
|
||||
|
@ -65,7 +68,7 @@ typedef struct IsaDmaClass {
|
|||
void (*release_DREQ)(IsaDma *obj, int nchan);
|
||||
void (*schedule)(IsaDma *obj);
|
||||
void (*register_channel)(IsaDma *obj, int nchan,
|
||||
DMA_transfer_handler transfer_handler,
|
||||
IsaDmaTransferHandler transfer_handler,
|
||||
void *opaque);
|
||||
} IsaDmaClass;
|
||||
|
||||
|
|
|
@ -1,55 +1,9 @@
|
|||
#ifndef FW_CFG_H
|
||||
#define FW_CFG_H
|
||||
|
||||
#ifndef NO_QEMU_PROTOS
|
||||
|
||||
#include "exec/hwaddr.h"
|
||||
#include "qemu/typedefs.h"
|
||||
#endif
|
||||
#include "hw/nvram/fw_cfg_keys.h"
|
||||
|
||||
#define FW_CFG_SIGNATURE 0x00
|
||||
#define FW_CFG_ID 0x01
|
||||
#define FW_CFG_UUID 0x02
|
||||
#define FW_CFG_RAM_SIZE 0x03
|
||||
#define FW_CFG_NOGRAPHIC 0x04
|
||||
#define FW_CFG_NB_CPUS 0x05
|
||||
#define FW_CFG_MACHINE_ID 0x06
|
||||
#define FW_CFG_KERNEL_ADDR 0x07
|
||||
#define FW_CFG_KERNEL_SIZE 0x08
|
||||
#define FW_CFG_KERNEL_CMDLINE 0x09
|
||||
#define FW_CFG_INITRD_ADDR 0x0a
|
||||
#define FW_CFG_INITRD_SIZE 0x0b
|
||||
#define FW_CFG_BOOT_DEVICE 0x0c
|
||||
#define FW_CFG_NUMA 0x0d
|
||||
#define FW_CFG_BOOT_MENU 0x0e
|
||||
#define FW_CFG_MAX_CPUS 0x0f
|
||||
#define FW_CFG_KERNEL_ENTRY 0x10
|
||||
#define FW_CFG_KERNEL_DATA 0x11
|
||||
#define FW_CFG_INITRD_DATA 0x12
|
||||
#define FW_CFG_CMDLINE_ADDR 0x13
|
||||
#define FW_CFG_CMDLINE_SIZE 0x14
|
||||
#define FW_CFG_CMDLINE_DATA 0x15
|
||||
#define FW_CFG_SETUP_ADDR 0x16
|
||||
#define FW_CFG_SETUP_SIZE 0x17
|
||||
#define FW_CFG_SETUP_DATA 0x18
|
||||
#define FW_CFG_FILE_DIR 0x19
|
||||
|
||||
#define FW_CFG_FILE_FIRST 0x20
|
||||
#define FW_CFG_FILE_SLOTS 0x10
|
||||
#define FW_CFG_MAX_ENTRY (FW_CFG_FILE_FIRST+FW_CFG_FILE_SLOTS)
|
||||
|
||||
#define FW_CFG_WRITE_CHANNEL 0x4000
|
||||
#define FW_CFG_ARCH_LOCAL 0x8000
|
||||
#define FW_CFG_ENTRY_MASK ~(FW_CFG_WRITE_CHANNEL | FW_CFG_ARCH_LOCAL)
|
||||
|
||||
#define FW_CFG_INVALID 0xffff
|
||||
|
||||
/* width in bytes of fw_cfg control register */
|
||||
#define FW_CFG_CTL_SIZE 0x02
|
||||
|
||||
#define FW_CFG_MAX_FILE_PATH 56
|
||||
|
||||
#ifndef NO_QEMU_PROTOS
|
||||
typedef struct FWCfgFile {
|
||||
uint32_t size; /* file size */
|
||||
uint16_t select; /* write this to 0x510 to read it */
|
||||
|
@ -221,6 +175,4 @@ FWCfgState *fw_cfg_init_mem_wide(hwaddr ctl_addr,
|
|||
|
||||
FWCfgState *fw_cfg_find(void);
|
||||
|
||||
#endif /* NO_QEMU_PROTOS */
|
||||
|
||||
#endif
|
||||
|
|
46
include/hw/nvram/fw_cfg_keys.h
Normal file
46
include/hw/nvram/fw_cfg_keys.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
#ifndef FW_CFG_KEYS_H
|
||||
#define FW_CFG_KEYS_H
|
||||
|
||||
#define FW_CFG_SIGNATURE 0x00
|
||||
#define FW_CFG_ID 0x01
|
||||
#define FW_CFG_UUID 0x02
|
||||
#define FW_CFG_RAM_SIZE 0x03
|
||||
#define FW_CFG_NOGRAPHIC 0x04
|
||||
#define FW_CFG_NB_CPUS 0x05
|
||||
#define FW_CFG_MACHINE_ID 0x06
|
||||
#define FW_CFG_KERNEL_ADDR 0x07
|
||||
#define FW_CFG_KERNEL_SIZE 0x08
|
||||
#define FW_CFG_KERNEL_CMDLINE 0x09
|
||||
#define FW_CFG_INITRD_ADDR 0x0a
|
||||
#define FW_CFG_INITRD_SIZE 0x0b
|
||||
#define FW_CFG_BOOT_DEVICE 0x0c
|
||||
#define FW_CFG_NUMA 0x0d
|
||||
#define FW_CFG_BOOT_MENU 0x0e
|
||||
#define FW_CFG_MAX_CPUS 0x0f
|
||||
#define FW_CFG_KERNEL_ENTRY 0x10
|
||||
#define FW_CFG_KERNEL_DATA 0x11
|
||||
#define FW_CFG_INITRD_DATA 0x12
|
||||
#define FW_CFG_CMDLINE_ADDR 0x13
|
||||
#define FW_CFG_CMDLINE_SIZE 0x14
|
||||
#define FW_CFG_CMDLINE_DATA 0x15
|
||||
#define FW_CFG_SETUP_ADDR 0x16
|
||||
#define FW_CFG_SETUP_SIZE 0x17
|
||||
#define FW_CFG_SETUP_DATA 0x18
|
||||
#define FW_CFG_FILE_DIR 0x19
|
||||
|
||||
#define FW_CFG_FILE_FIRST 0x20
|
||||
#define FW_CFG_FILE_SLOTS 0x10
|
||||
#define FW_CFG_MAX_ENTRY (FW_CFG_FILE_FIRST + FW_CFG_FILE_SLOTS)
|
||||
|
||||
#define FW_CFG_WRITE_CHANNEL 0x4000
|
||||
#define FW_CFG_ARCH_LOCAL 0x8000
|
||||
#define FW_CFG_ENTRY_MASK (~(FW_CFG_WRITE_CHANNEL | FW_CFG_ARCH_LOCAL))
|
||||
|
||||
#define FW_CFG_INVALID 0xffff
|
||||
|
||||
/* width in bytes of fw_cfg control register */
|
||||
#define FW_CFG_CTL_SIZE 0x02
|
||||
|
||||
#define FW_CFG_MAX_FILE_PATH 56
|
||||
|
||||
#endif
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef QEMU_PCI_H
|
||||
#define QEMU_PCI_H
|
||||
|
||||
#include "qemu-common.h"
|
||||
|
||||
#include "hw/qdev.h"
|
||||
#include "exec/memory.h"
|
||||
#include "sysemu/dma.h"
|
||||
|
@ -97,6 +95,15 @@
|
|||
|
||||
#define FMT_PCIBUS PRIx64
|
||||
|
||||
typedef uint64_t pcibus_t;
|
||||
|
||||
struct PCIHostDeviceAddress {
|
||||
unsigned int domain;
|
||||
unsigned int bus;
|
||||
unsigned int slot;
|
||||
unsigned int function;
|
||||
};
|
||||
|
||||
typedef void PCIConfigWriteFunc(PCIDevice *pci_dev,
|
||||
uint32_t address, uint32_t data, int len);
|
||||
typedef uint32_t PCIConfigReadFunc(PCIDevice *pci_dev,
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#define HW_MAC_DBDMA_H 1
|
||||
|
||||
#include "exec/memory.h"
|
||||
#include "qemu/iov.h"
|
||||
|
||||
typedef struct DBDMA_io DBDMA_io;
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
#include "qemu/queue.h"
|
||||
#include "qemu/option.h"
|
||||
#include "qemu/typedefs.h"
|
||||
#include "qemu/bitmap.h"
|
||||
#include "qom/object.h"
|
||||
#include "hw/irq.h"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define QEMU_HW_SCSI_H
|
||||
|
||||
#include "hw/qdev.h"
|
||||
#include "qemu/typedefs.h"
|
||||
#include "hw/block/block.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "qemu/notify.h"
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#define HW_TIMER_DIGIC_TIMER_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/typedefs.h"
|
||||
#include "hw/ptimer.h"
|
||||
|
||||
#define TYPE_DIGIC_TIMER "digic-timer"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
*/
|
||||
|
||||
#include "hw/qdev.h"
|
||||
#include "qemu/iov.h"
|
||||
#include "qemu/queue.h"
|
||||
|
||||
/* Constants related to the USB / PCI interaction */
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef VFIO_API_H
|
||||
#define VFIO_API_H
|
||||
|
||||
#include "qemu/typedefs.h"
|
||||
|
||||
bool vfio_eeh_as_ok(AddressSpace *as);
|
||||
int vfio_eeh_as_op(AddressSpace *as, uint32_t op);
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
#include "hw/irq.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/typedefs.h"
|
||||
|
||||
/* xen-machine.c */
|
||||
enum xen_mode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue