whpx: move whpx_lapic_state from header to c file
authorYonggang Luo <luoyonggang@gmail.com>
Thu, 7 Jan 2021 10:19:19 +0000 (02:19 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Jan 2021 11:38:03 +0000 (12:38 +0100)
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
target/i386/whpx/whpx-internal.h

index 1d330bf7498e457e04a9b5e83a164c1c7dcb9934..bba36f3ec98f2af0cb2341253d9086ff5d8f7691 100644 (file)
 #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)
 {
index 8cfaaef141609ff9cef01a2c23fb8da3b3060d33..908ababf6dc5ca955d9880c85186988e64070456 100644 (file)
@@ -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);