[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/20] whpx: move whpx_lapic_state from header to c file
From: |
Paolo Bonzini |
Subject: |
[PULL 07/20] whpx: move whpx_lapic_state from header to c file |
Date: |
Tue, 12 Jan 2021 18:14:37 +0100 |
From: Yonggang Luo <luoyonggang@gmail.com>
This struct only used in whpx-apic.c, there is no need
expose it in whpx.h.
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Message-Id: <20210107101919.80-6-luoyonggang@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
target/i386/whpx/whpx-apic.c | 7 +++++++
target/i386/whpx/whpx-internal.h | 7 -------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/target/i386/whpx/whpx-apic.c b/target/i386/whpx/whpx-apic.c
index 1d330bf749..bba36f3ec9 100644
--- a/target/i386/whpx/whpx-apic.c
+++ b/target/i386/whpx/whpx-apic.c
@@ -20,6 +20,13 @@
#include "sysemu/whpx.h"
#include "whpx-internal.h"
+struct whpx_lapic_state {
+ struct {
+ uint32_t data;
+ uint32_t padding[3];
+ } fields[256];
+};
+
static void whpx_put_apic_state(APICCommonState *s,
struct whpx_lapic_state *kapic)
{
diff --git a/target/i386/whpx/whpx-internal.h b/target/i386/whpx/whpx-internal.h
index 8cfaaef141..908ababf6d 100644
--- a/target/i386/whpx/whpx-internal.h
+++ b/target/i386/whpx/whpx-internal.h
@@ -13,13 +13,6 @@ struct whpx_state {
bool apic_in_platform;
};
-struct whpx_lapic_state {
- struct {
- uint32_t data;
- uint32_t padding[3];
- } fields[256];
-};
-
extern struct whpx_state whpx_global;
void whpx_apic_get(DeviceState *s);
--
2.29.2
- [PULL 00/20] Misc patches for 2021-01-12, Paolo Bonzini, 2021/01/12
- [PULL 01/20] meson: do not use CONFIG_VIRTFS, Paolo Bonzini, 2021/01/12
- [PULL 07/20] whpx: move whpx_lapic_state from header to c file,
Paolo Bonzini <=
- [PULL 02/20] whpx: rename whp-dispatch to whpx-internal.h, Paolo Bonzini, 2021/01/12
- [PULL 06/20] maintainers: Add me as Windows Hosted Continuous Integration maintainer, Paolo Bonzini, 2021/01/12
- [PULL 04/20] cirrus/msys2: Exit powershell with $LastExitCode, Paolo Bonzini, 2021/01/12
- [PULL 03/20] whpx: move internal definitions to whpx-internal.h, Paolo Bonzini, 2021/01/12
- [PULL 18/20] configure: move Cocoa incompatibility checks to Meson, Paolo Bonzini, 2021/01/12
- [PULL 20/20] target/i386: Use X86Seg enum for segment registers, Paolo Bonzini, 2021/01/12
- [PULL 05/20] cirrus/msys2: Cache msys2 mingw in a better way., Paolo Bonzini, 2021/01/12
- [PULL 09/20] scripts/gdb: fix 'qemu coroutine' when users selects a non topmost stack frame, Paolo Bonzini, 2021/01/12
- [PULL 08/20] meson: fix Cocoa option in summary, Paolo Bonzini, 2021/01/12
- [PULL 10/20] scripts/gdb: implement 'qemu bt', Paolo Bonzini, 2021/01/12