mirror of
https://github.com/qemu/qemu.git
synced 2025-08-14 20:31:47 +00:00
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:
parent
daee8de314
commit
9a46d044d8
@ -20,6 +20,13 @@
|
|||||||
#include "sysemu/whpx.h"
|
#include "sysemu/whpx.h"
|
||||||
#include "whpx-internal.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,
|
static void whpx_put_apic_state(APICCommonState *s,
|
||||||
struct whpx_lapic_state *kapic)
|
struct whpx_lapic_state *kapic)
|
||||||
{
|
{
|
||||||
|
@ -13,13 +13,6 @@ struct whpx_state {
|
|||||||
bool apic_in_platform;
|
bool apic_in_platform;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct whpx_lapic_state {
|
|
||||||
struct {
|
|
||||||
uint32_t data;
|
|
||||||
uint32_t padding[3];
|
|
||||||
} fields[256];
|
|
||||||
};
|
|
||||||
|
|
||||||
extern struct whpx_state whpx_global;
|
extern struct whpx_state whpx_global;
|
||||||
void whpx_apic_get(DeviceState *s);
|
void whpx_apic_get(DeviceState *s);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user