qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Yonggang Luo <luoyonggang@gmail.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	Sunil Muthuswamy <sunilmut@microsoft.com>,
	Ed Maste <emaste@freebsd.org>,
	Yonggang Luo <luoyonggang@gmail.com>
Subject: [PATCH v4 5/5] whpx: move whpx_lapic_state from header to c file
Date: Thu,  7 Jan 2021 02:19:19 -0800	[thread overview]
Message-ID: <20210107101919.80-6-luoyonggang@gmail.com> (raw)
In-Reply-To: <20210107101919.80-1-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>
---
 include/sysemu/whpx.h        | 7 -------
 target/i386/whpx/whpx-apic.c | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/sysemu/whpx.h b/include/sysemu/whpx.h
index 4f38784d7e..bfbcaa25d8 100644
--- a/include/sysemu/whpx.h
+++ b/include/sysemu/whpx.h
@@ -25,13 +25,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;
 int whpx_enabled(void);
 
diff --git a/target/i386/whpx/whpx-apic.c b/target/i386/whpx/whpx-apic.c
index b127a3cb8a..dd60fb0996 100644
--- a/target/i386/whpx/whpx-apic.c
+++ b/target/i386/whpx/whpx-apic.c
@@ -20,6 +20,13 @@
 #include "sysemu/whpx.h"
 #include "whp-dispatch.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)
 {
-- 
2.29.2.windows.3



  parent reply	other threads:[~2021-01-07 10:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07 10:19 [PATCH v4 0/5] Misc meson fixes along test-vmstate fixes Yonggang Luo
2021-01-07 10:19 ` [PATCH v4 1/5] cirrus/msys2: Exit powershell with $LastExitCode Yonggang Luo
2021-01-07 11:16   ` Philippe Mathieu-Daudé
2021-01-07 10:19 ` [PATCH v4 2/5] cirrus/msys2: Cache msys2 mingw in a better way Yonggang Luo
2021-01-07 10:19 ` [PATCH v4 3/5] maintainers: Add me as Windows Hosted Continuous Integration maintainer Yonggang Luo
2021-01-07 11:17   ` Philippe Mathieu-Daudé
2021-01-07 10:19 ` [PATCH v4 4/5] whpx: Fixes include of whp-dispatch.h in whpx.h Yonggang Luo
2021-01-07 10:26   ` Marc-André Lureau
2021-01-07 11:17   ` Philippe Mathieu-Daudé
2021-01-07 10:19 ` Yonggang Luo [this message]
2021-01-07 10:28   ` [PATCH v4 5/5] whpx: move whpx_lapic_state from header to c file Marc-André Lureau
2021-01-07 10:55     ` Paolo Bonzini
2021-01-07 10:57       ` 罗勇刚(Yonggang Luo)
2021-01-07 10:28 ` [PATCH v4 0/5] Misc meson fixes along test-vmstate fixes Paolo Bonzini
2021-01-07 10:30 ` no-reply
2021-01-07 11:35 ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210107101919.80-6-luoyonggang@gmail.com \
    --to=luoyonggang@gmail.com \
    --cc=emaste@freebsd.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sunilmut@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).