target/i386: Include 'hw/i386/apic.h' locally
PATCH v3 1/1 target/i386: Include 'hw/i386/apic.h' locally
Instead of including a sysemu-specific header in "cpu.h" (which is shared with user-mode emulations), include it locally when required.
--- target/i386/cpu.h | 4 ---- hw/i386/kvmvapic.c | 1 + hw/i386/x86.c | 1 + target/i386/cpu-dump.c | 1 + target/i386/cpu-sysemu.c | 1 + target/i386/cpu.c | 1 + target/i386/gdbstub.c | 4 ++++ target/i386/hax/hax-all.c | 1 + target/i386/helper.c | 1 + target/i386/hvf/hvf.c | 1 + target/i386/hvf/x86_emu.c | 1 + target/i386/nvmm/nvmm-all.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + target/i386/tcg/sysemu/seg_helper.c | 1 + target/i386/whpx/whpx-all.c | 1 + 15 files changed, 17 insertions(+), 4 deletions(-)
target/i386/cpu.h +0 -4
@@ -2045,10 +2045,6 @@ typedef X86CPU ArchCPU;#include "exec/cpu-all.h" #include "svm.h" -#if !defined(CONFIG_USER_ONLY ) -#include "hw/i386/apic.h" -#endif -static inline void cpu_get_tb_cpu_state (CPUX86State *env,target_ulong *pc,target_ulong *cs_base,uint32_t *flags) {
hw/i386/kvmvapic.c +1 -0
@@ -16,6 +16,7 @@#include "sysemu/hw_accel.h" #include "sysemu/kvm.h" #include "sysemu/runstate.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "hw/sysbus.h" #include "hw/boards.h"
hw/i386/x86.c +1 -0
@@ -43,6 +43,7 @@#include "target/i386/cpu.h" #include "hw/i386/topology.h" #include "hw/i386/fw_cfg.h" +#include "hw/i386/apic.h" #include "hw/intc/i8259.h" #include "hw/rtc/mc146818rtc.h"
target/i386/cpu-dump.c +1 -0
@@ -22,6 +22,7 @@#include "qemu/qemu-print.h" #ifndef CONFIG_USER_ONLY #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #endif /***********************************************************/
target/i386/cpu-sysemu.c +1 -0
@@ -30,6 +30,7 @@#include "hw/qdev-properties.h" #include "exec/address-spaces.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "cpu-internal.h"
target/i386/cpu.c +1 -0
@@ -33,6 +33,7 @@#include "standard-headers/asm-x86/kvm_para.h" #include "hw/qdev-properties.h" #include "hw/i386/topology.h" +#include "hw/i386/apic.h" #ifndef CONFIG_USER_ONLY #include "exec/address-spaces.h" #include "hw/boards.h"
target/i386/gdbstub.c +4 -0
@@ -21,6 +21,10 @@#include "cpu.h" #include "exec/gdbstub.h" +#ifndef CONFIG_USER_ONLY +#include "hw/i386/apic.h" +#endif +#ifdef TARGET_X86_64 static const int gpr_map[16 ] = { R_EAX, R_EBX, R_ECX, R_EDX, R_ESI, R_EDI, R_EBP, R_ESP,
target/i386/hax/hax-all.c +1 -0
@@ -32,6 +32,7 @@#include "sysemu/reset.h" #include "sysemu/runstate.h" #include "hw/boards.h" +#include "hw/i386/apic.h" #include "hax-accel-ops.h"
target/i386/helper.c +1 -0
@@ -26,6 +26,7 @@#ifndef CONFIG_USER_ONLY #include "sysemu/hw_accel.h" #include "monitor/monitor.h" +#include "hw/i386/apic.h" #endif void cpu_sync_bndcs_hflags (CPUX86State *env)
target/i386/hvf/hvf.c +1 -0
@@ -70,6 +70,7 @@#include <sys/sysctl.h> #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #include "qemu/main-loop.h" #include "qemu/accel.h" #include "target/i386/cpu.h"
target/i386/hvf/x86_emu.c +1 -0
@@ -45,6 +45,7 @@#include "x86_flags.h" #include "vmcs.h" #include "vmx.h" +#include "hw/i386/apic.h" void hvf_handle_io (struct CPUState *cpu,uint16_t port,void *data,int direction,int size,uint32_t count);
target/i386/nvmm/nvmm-all.c +1 -0
@@ -22,6 +22,7 @@#include "qemu/queue.h" #include "migration/blocker.h" #include "strings.h" +#include "hw/i386/apic.h" #include "nvmm-accel-ops.h"
target/i386/tcg/sysemu/misc_helper.c +1 -0
@@ -24,6 +24,7 @@#include "exec/cpu_ldst.h" #include "exec/address-spaces.h" #include "tcg/helper-tcg.h" +#include "hw/i386/apic.h" void helper_outb (CPUX86State *env,uint32_t port,uint32_t data) {
target/i386/tcg/sysemu/seg_helper.c +1 -0
@@ -24,6 +24,7 @@#include "exec/cpu_ldst.h" #include "tcg/helper-tcg.h" #include "../seg_helper.h" +#include "hw/i386/apic.h" #ifdef TARGET_X86_64 void helper_syscall (CPUX86State *env,int next_eip_addend)
target/i386/whpx/whpx-all.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/main-loop.h" #include "hw/boards.h" #include "hw/i386/ioapic.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "qemu/error-report.h" #include "qapi/error.h"
Signature · 1 line
2.31.1
Le 29/09/2021 à 18:31, Philippe Mathieu-Daudé a écrit :
Quoted 24 lines
Instead of including a sysemu-specific header in "
cpu.h" (which is shared with user-mode emulations), include it locally when required.Acked-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/i386/cpu.h | 4 ---- hw/i386/kvmvapic.c | 1 + hw/i386/x86.c | 1 + target/i386/cpu-dump.c | 1 + target/i386/cpu-sysemu.c | 1 + target/i386/cpu.c | 1 + target/i386/gdbstub.c | 4 ++++ target/i386/hax/hax-all.c | 1 + target/i386/helper.c | 1 + target/i386/hvf/hvf.c | 1 + target/i386/hvf/x86_emu.c | 1 + target/i386/nvmm/nvmm-all.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + target/i386/tcg/sysemu/seg_helper.c | 1 + target/i386/whpx/whpx-all.c | 1 + 15 files changed, 17 insertions(+), 4 deletions(-)
...
target/i386/cpu-dump.c line 28
Quoted 12 lines
target/i386/cpu-dump.c +1
-0@@ -22,6 +22,7 @@#include "qemu/qemu-print.h" #ifndef CONFIG_USER_ONLY #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #endif /***********************************************************/
Why do you add this part compared to v1?
...
target/i386/hvf/hvf.c line 76
Quoted 12 lines
target/i386/hvf/hvf.c +1
-0@@ -70,6 +70,7 @@#include <sys/sysctl.h> #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #include "qemu/main-loop.h" #include "qemu/accel.h" #include "target/i386/cpu.h"
Same question
Thanks,
Laurent
Quoted 37 lines · Laurent Vivier
Le 29/09/2021 à 18:31, Philippe Mathieu-Daudé a écrit :
Quoted 24 lines
Instead of including a sysemu-specific header in "
cpu.h" (which is shared with user-mode emulations), include it locally when required.Acked-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/i386/cpu.h | 4 ---- hw/i386/kvmvapic.c | 1 + hw/i386/x86.c | 1 + target/i386/cpu-dump.c | 1 + target/i386/cpu-sysemu.c | 1 + target/i386/cpu.c | 1 + target/i386/gdbstub.c | 4 ++++ target/i386/hax/hax-all.c | 1 + target/i386/helper.c | 1 + target/i386/hvf/hvf.c | 1 + target/i386/hvf/x86_emu.c | 1 + target/i386/nvmm/nvmm-all.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + target/i386/tcg/sysemu/seg_helper.c | 1 + target/i386/whpx/whpx-all.c | 1 + 15 files changed, 17 insertions(+), 4 deletions(-)...
Quoted 11 lines
target/i386/cpu-dump.c +1
-0@@ -22,6 +22,7 @@#include "qemu/qemu-print.h" #ifndef CONFIG_USER_ONLY #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #endif
Quoted 3 lines
target/i386/cpu-dump.c line 28
Quoted 1 line
target/i386/cpu-dump.c +0
-0/***********************************************************/ Why do you add this part compared to v1?
This is a mistake.
Quoted 7 lines
Quoted 7 lines
target/i386/hvf/hvf.c +0
-0@@ -70,6 +70,7 @@#include <sys/sysctl.h>
Quoted 7 lines
target/i386/hvf/hvf.c line 76
Quoted 5 lines
target/i386/hvf/hvf.c +1
-0#include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #include "qemu/main-loop.h" #include "qemu/accel.h" #include "target/i386/cpu.h" Same question
Was missing for cpu_set_apic_tpr():
include/hw/i386/apic.h:16:void cpu_set_apic_tpr(DeviceState *s, uint8_t val);target/i386/hvf/hvf.c:98: cpu_set_apic_tpr(x86_cpu->apic_state, tpr);target/i386/hvf/hvf.c:618:cpu_set_apic_tpr(x86_cpu->apic_state, tpr);
Quoted 4 lines
Thanks,
Laurent
Quoted 6 lines · Philippe Mathieu-Daudé
Instead of including a sysemu-specific header in "
cpu.h" (which is shared with user-mode emulations), include it locally when required.Acked-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 206 lines
--- target/i386/cpu.h | 4 ---- hw/i386/kvmvapic.c | 1 + hw/i386/x86.c | 1 + target/i386/cpu-dump.c | 1 + target/i386/cpu-sysemu.c | 1 + target/i386/cpu.c | 1 + target/i386/gdbstub.c | 4 ++++ target/i386/hax/hax-all.c | 1 + target/i386/helper.c | 1 + target/i386/hvf/hvf.c | 1 + target/i386/hvf/x86_emu.c | 1 + target/i386/nvmm/nvmm-all.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + target/i386/tcg/sysemu/seg_helper.c | 1 + target/i386/whpx/whpx-all.c | 1 + 15 files changed, 17 insertions(+), 4 deletions(-)target/i386/cpu.h +0
-4@@ -2045,10 +2045,6 @@ typedef X86CPU ArchCPU;#include "exec/cpu-all.h" #include "svm.h" -#if !defined(CONFIG_USER_ONLY ) -#include "hw/i386/apic.h" -#endif -static inline void cpu_get_tb_cpu_state (CPUX86State *env,target_ulong *pc,target_ulong *cs_base,uint32_t *flags) {hw/i386/kvmvapic.c +1
-0@@ -16,6 +16,7 @@#include "sysemu/hw_accel.h" #include "sysemu/kvm.h" #include "sysemu/runstate.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "hw/sysbus.h" #include "hw/boards.h" hw/i386/x86.c +1
-0@@ -43,6 +43,7 @@#include "target/i386/cpu.h" #include "hw/i386/topology.h" #include "hw/i386/fw_cfg.h" +#include "hw/i386/apic.h" #include "hw/intc/i8259.h" #include "hw/rtc/mc146818rtc.h" target/i386/cpu-dump.c +1
-0@@ -22,6 +22,7 @@#include "qemu/qemu-print.h" #ifndef CONFIG_USER_ONLY #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #endif /***********************************************************/ target/i386/cpu-sysemu.c +1
-0@@ -30,6 +30,7 @@#include "hw/qdev-properties.h" #include "exec/address-spaces.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "cpu-internal.h" target/i386/cpu.c +1
-0@@ -33,6 +33,7 @@#include "standard-headers/asm-x86/kvm_para.h" #include "hw/qdev-properties.h" #include "hw/i386/topology.h" +#include "hw/i386/apic.h" #ifndef CONFIG_USER_ONLY #include "exec/address-spaces.h" #include "hw/boards.h" target/i386/gdbstub.c +4
-0@@ -21,6 +21,10 @@#include "cpu.h" #include "exec/gdbstub.h" +#ifndef CONFIG_USER_ONLY +#include "hw/i386/apic.h" +#endif +#ifdef TARGET_X86_64 static const int gpr_map[16 ] = { R_EAX, R_EBX, R_ECX, R_EDX, R_ESI, R_EDI, R_EBP, R_ESP,target/i386/hax/hax-all.c +1
-0@@ -32,6 +32,7 @@#include "sysemu/reset.h" #include "sysemu/runstate.h" #include "hw/boards.h" +#include "hw/i386/apic.h" #include "hax-accel-ops.h" target/i386/helper.c +1
-0@@ -26,6 +26,7 @@#ifndef CONFIG_USER_ONLY #include "sysemu/hw_accel.h" #include "monitor/monitor.h" +#include "hw/i386/apic.h" #endif void cpu_sync_bndcs_hflags (CPUX86State *env)target/i386/hvf/hvf.c +1
-0@@ -70,6 +70,7 @@#include <sys/sysctl.h> #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #include "qemu/main-loop.h" #include "qemu/accel.h" #include "target/i386/cpu.h" target/i386/hvf/x86_emu.c +1
-0@@ -45,6 +45,7 @@#include "x86_flags.h" #include "vmcs.h" #include "vmx.h" +#include "hw/i386/apic.h" void hvf_handle_io (struct CPUState *cpu,uint16_t port,void *data,int direction,int size,uint32_t count);target/i386/nvmm/nvmm-all.c +1
-0@@ -22,6 +22,7 @@#include "qemu/queue.h" #include "migration/blocker.h" #include "strings.h" +#include "hw/i386/apic.h" #include "nvmm-accel-ops.h" target/i386/tcg/sysemu/misc_helper.c +1
-0@@ -24,6 +24,7 @@#include "exec/cpu_ldst.h" #include "exec/address-spaces.h" #include "tcg/helper-tcg.h" +#include "hw/i386/apic.h" void helper_outb (CPUX86State *env,uint32_t port,uint32_t data) {target/i386/tcg/sysemu/seg_helper.c +1
-0@@ -24,6 +24,7 @@#include "exec/cpu_ldst.h" #include "tcg/helper-tcg.h" #include "../seg_helper.h" +#include "hw/i386/apic.h" #ifdef TARGET_X86_64 void helper_syscall (CPUX86State *env,int next_eip_addend)target/i386/whpx/whpx-all.c +1
-0@@ -20,6 +20,7 @@#include "qemu/main-loop.h" #include "hw/boards.h" #include "hw/i386/ioapic.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "qemu/error-report.h" #include "qapi/error.h" Signature · 1 line
2.31.1
Quoted 6 lines · Philippe Mathieu-Daudé
Instead of including a sysemu-specific header in "
cpu.h" (which is shared with user-mode emulations), include it locally when required.Acked-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
which tree? trivial I guess?
Quoted 206 lines
--- target/i386/cpu.h | 4 ---- hw/i386/kvmvapic.c | 1 + hw/i386/x86.c | 1 + target/i386/cpu-dump.c | 1 + target/i386/cpu-sysemu.c | 1 + target/i386/cpu.c | 1 + target/i386/gdbstub.c | 4 ++++ target/i386/hax/hax-all.c | 1 + target/i386/helper.c | 1 + target/i386/hvf/hvf.c | 1 + target/i386/hvf/x86_emu.c | 1 + target/i386/nvmm/nvmm-all.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + target/i386/tcg/sysemu/seg_helper.c | 1 + target/i386/whpx/whpx-all.c | 1 + 15 files changed, 17 insertions(+), 4 deletions(-)target/i386/cpu.h +0
-4@@ -2045,10 +2045,6 @@ typedef X86CPU ArchCPU;#include "exec/cpu-all.h" #include "svm.h" -#if !defined(CONFIG_USER_ONLY ) -#include "hw/i386/apic.h" -#endif -static inline void cpu_get_tb_cpu_state (CPUX86State *env,target_ulong *pc,target_ulong *cs_base,uint32_t *flags) {hw/i386/kvmvapic.c +1
-0@@ -16,6 +16,7 @@#include "sysemu/hw_accel.h" #include "sysemu/kvm.h" #include "sysemu/runstate.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "hw/sysbus.h" #include "hw/boards.h" hw/i386/x86.c +1
-0@@ -43,6 +43,7 @@#include "target/i386/cpu.h" #include "hw/i386/topology.h" #include "hw/i386/fw_cfg.h" +#include "hw/i386/apic.h" #include "hw/intc/i8259.h" #include "hw/rtc/mc146818rtc.h" target/i386/cpu-dump.c +1
-0@@ -22,6 +22,7 @@#include "qemu/qemu-print.h" #ifndef CONFIG_USER_ONLY #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #endif /***********************************************************/ target/i386/cpu-sysemu.c +1
-0@@ -30,6 +30,7 @@#include "hw/qdev-properties.h" #include "exec/address-spaces.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "cpu-internal.h" target/i386/cpu.c +1
-0@@ -33,6 +33,7 @@#include "standard-headers/asm-x86/kvm_para.h" #include "hw/qdev-properties.h" #include "hw/i386/topology.h" +#include "hw/i386/apic.h" #ifndef CONFIG_USER_ONLY #include "exec/address-spaces.h" #include "hw/boards.h" target/i386/gdbstub.c +4
-0@@ -21,6 +21,10 @@#include "cpu.h" #include "exec/gdbstub.h" +#ifndef CONFIG_USER_ONLY +#include "hw/i386/apic.h" +#endif +#ifdef TARGET_X86_64 static const int gpr_map[16 ] = { R_EAX, R_EBX, R_ECX, R_EDX, R_ESI, R_EDI, R_EBP, R_ESP,target/i386/hax/hax-all.c +1
-0@@ -32,6 +32,7 @@#include "sysemu/reset.h" #include "sysemu/runstate.h" #include "hw/boards.h" +#include "hw/i386/apic.h" #include "hax-accel-ops.h" target/i386/helper.c +1
-0@@ -26,6 +26,7 @@#ifndef CONFIG_USER_ONLY #include "sysemu/hw_accel.h" #include "monitor/monitor.h" +#include "hw/i386/apic.h" #endif void cpu_sync_bndcs_hflags (CPUX86State *env)target/i386/hvf/hvf.c +1
-0@@ -70,6 +70,7 @@#include <sys/sysctl.h> #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #include "qemu/main-loop.h" #include "qemu/accel.h" #include "target/i386/cpu.h" target/i386/hvf/x86_emu.c +1
-0@@ -45,6 +45,7 @@#include "x86_flags.h" #include "vmcs.h" #include "vmx.h" +#include "hw/i386/apic.h" void hvf_handle_io (struct CPUState *cpu,uint16_t port,void *data,int direction,int size,uint32_t count);target/i386/nvmm/nvmm-all.c +1
-0@@ -22,6 +22,7 @@#include "qemu/queue.h" #include "migration/blocker.h" #include "strings.h" +#include "hw/i386/apic.h" #include "nvmm-accel-ops.h" target/i386/tcg/sysemu/misc_helper.c +1
-0@@ -24,6 +24,7 @@#include "exec/cpu_ldst.h" #include "exec/address-spaces.h" #include "tcg/helper-tcg.h" +#include "hw/i386/apic.h" void helper_outb (CPUX86State *env,uint32_t port,uint32_t data) {target/i386/tcg/sysemu/seg_helper.c +1
-0@@ -24,6 +24,7 @@#include "exec/cpu_ldst.h" #include "tcg/helper-tcg.h" #include "../seg_helper.h" +#include "hw/i386/apic.h" #ifdef TARGET_X86_64 void helper_syscall (CPUX86State *env,int next_eip_addend)target/i386/whpx/whpx-all.c +1
-0@@ -20,6 +20,7 @@#include "qemu/main-loop.h" #include "hw/boards.h" #include "hw/i386/ioapic.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "qemu/error-report.h" #include "qapi/error.h" Signature · 1 line
2.31.1
Le 05/10/2021 à 16:57, Michael S. Tsirkin a écrit :
Quoted 11 lines · Philippe Mathieu-Daudé
Quoted 6 lines
Instead of including a sysemu-specific header in "
cpu.h" (which is shared with user-mode emulations), include it locally when required.Acked-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>which tree? trivial I guess?
Yes, but for me the patch was not correct because there is no need to update target/i386/cpu-dump.c But perhaps I misunderstood the answer from Philippe?
Thanks
Laurent
Quoted 209 lines
Quoted 207 lines
--- target/i386/cpu.h | 4 ---- hw/i386/kvmvapic.c | 1 + hw/i386/x86.c | 1 + target/i386/cpu-dump.c | 1 + target/i386/cpu-sysemu.c | 1 + target/i386/cpu.c | 1 + target/i386/gdbstub.c | 4 ++++ target/i386/hax/hax-all.c | 1 + target/i386/helper.c | 1 + target/i386/hvf/hvf.c | 1 + target/i386/hvf/x86_emu.c | 1 + target/i386/nvmm/nvmm-all.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + target/i386/tcg/sysemu/seg_helper.c | 1 + target/i386/whpx/whpx-all.c | 1 + 15 files changed, 17 insertions(+), 4 deletions(-)target/i386/cpu.h +0
-4@@ -2045,10 +2045,6 @@ typedef X86CPU ArchCPU;#include "exec/cpu-all.h" #include "svm.h" -#if !defined(CONFIG_USER_ONLY ) -#include "hw/i386/apic.h" -#endif -static inline void cpu_get_tb_cpu_state (CPUX86State *env,target_ulong *pc,target_ulong *cs_base,uint32_t *flags) {hw/i386/kvmvapic.c +1
-0@@ -16,6 +16,7 @@#include "sysemu/hw_accel.h" #include "sysemu/kvm.h" #include "sysemu/runstate.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "hw/sysbus.h" #include "hw/boards.h" hw/i386/x86.c +1
-0@@ -43,6 +43,7 @@#include "target/i386/cpu.h" #include "hw/i386/topology.h" #include "hw/i386/fw_cfg.h" +#include "hw/i386/apic.h" #include "hw/intc/i8259.h" #include "hw/rtc/mc146818rtc.h" target/i386/cpu-dump.c +1
-0@@ -22,6 +22,7 @@#include "qemu/qemu-print.h" #ifndef CONFIG_USER_ONLY #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #endif /***********************************************************/ target/i386/cpu-sysemu.c +1
-0@@ -30,6 +30,7 @@#include "hw/qdev-properties.h" #include "exec/address-spaces.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "cpu-internal.h" target/i386/cpu.c +1
-0@@ -33,6 +33,7 @@#include "standard-headers/asm-x86/kvm_para.h" #include "hw/qdev-properties.h" #include "hw/i386/topology.h" +#include "hw/i386/apic.h" #ifndef CONFIG_USER_ONLY #include "exec/address-spaces.h" #include "hw/boards.h" target/i386/gdbstub.c +4
-0@@ -21,6 +21,10 @@#include "cpu.h" #include "exec/gdbstub.h" +#ifndef CONFIG_USER_ONLY +#include "hw/i386/apic.h" +#endif +#ifdef TARGET_X86_64 static const int gpr_map[16 ] = { R_EAX, R_EBX, R_ECX, R_EDX, R_ESI, R_EDI, R_EBP, R_ESP,target/i386/hax/hax-all.c +1
-0@@ -32,6 +32,7 @@#include "sysemu/reset.h" #include "sysemu/runstate.h" #include "hw/boards.h" +#include "hw/i386/apic.h" #include "hax-accel-ops.h" target/i386/helper.c +1
-0@@ -26,6 +26,7 @@#ifndef CONFIG_USER_ONLY #include "sysemu/hw_accel.h" #include "monitor/monitor.h" +#include "hw/i386/apic.h" #endif void cpu_sync_bndcs_hflags (CPUX86State *env)target/i386/hvf/hvf.c +1
-0@@ -70,6 +70,7 @@#include <sys/sysctl.h> #include "hw/i386/apic_internal.h" +#include "hw/i386/apic.h" #include "qemu/main-loop.h" #include "qemu/accel.h" #include "target/i386/cpu.h" target/i386/hvf/x86_emu.c +1
-0@@ -45,6 +45,7 @@#include "x86_flags.h" #include "vmcs.h" #include "vmx.h" +#include "hw/i386/apic.h" void hvf_handle_io (struct CPUState *cpu,uint16_t port,void *data,int direction,int size,uint32_t count);target/i386/nvmm/nvmm-all.c +1
-0@@ -22,6 +22,7 @@#include "qemu/queue.h" #include "migration/blocker.h" #include "strings.h" +#include "hw/i386/apic.h" #include "nvmm-accel-ops.h" target/i386/tcg/sysemu/misc_helper.c +1
-0@@ -24,6 +24,7 @@#include "exec/cpu_ldst.h" #include "exec/address-spaces.h" #include "tcg/helper-tcg.h" +#include "hw/i386/apic.h" void helper_outb (CPUX86State *env,uint32_t port,uint32_t data) {target/i386/tcg/sysemu/seg_helper.c +1
-0@@ -24,6 +24,7 @@#include "exec/cpu_ldst.h" #include "tcg/helper-tcg.h" #include "../seg_helper.h" +#include "hw/i386/apic.h" #ifdef TARGET_X86_64 void helper_syscall (CPUX86State *env,int next_eip_addend)target/i386/whpx/whpx-all.c +1
-0@@ -20,6 +20,7 @@#include "qemu/main-loop.h" #include "hw/boards.h" #include "hw/i386/ioapic.h" +#include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" #include "qemu/error-report.h" #include "qapi/error.h" Signature · 1 line
2.31.1
Quoted 9 lines · Laurent Vivier
Le 05/10/2021 à 16:57, Michael S. Tsirkin a écrit :
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 6 lines
Instead of including a sysemu-specific header in "
cpu.h" (which is shared with user-mode emulations), include it locally when required.Acked-by Paolo Bonzini <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 6 lines
Quoted 3 lines
which tree? trivial I guess?
Yes, but for me the patch was not correct because there is no need to update
target/i386/cpu-dump.cBut perhaps I misunderstood the answer from Philippe?
You understood correctly, this series requires a respin.