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>
#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)
{
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);