whpx: move whpx_lapic_state from header to c file

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>
This commit is contained in:
Yonggang Luo 2021-01-07 02:19:19 -08:00 committed by Paolo Bonzini
parent daee8de314
commit 9a46d044d8
2 changed files with 7 additions and 7 deletions

View File

@ -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)
{

View 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);