All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@gmail.com>
To: Yonggang Luo <luoyonggang@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	Sunil Muthuswamy <sunilmut@microsoft.com>,
	Ed Maste <emaste@freebsd.org>, QEMU <qemu-devel@nongnu.org>
Subject: Re: [PATCH v4 5/5] whpx: move whpx_lapic_state from header to c file
Date: Thu, 7 Jan 2021 14:28:43 +0400	[thread overview]
Message-ID: <CAJ+F1C+q9e08zX9OqkS4294oCNBAf-Gs7L9AomtYrc7vKyqCEA@mail.gmail.com> (raw)
In-Reply-To: <20210107101919.80-6-luoyonggang@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

Hi

On Thu, Jan 7, 2021 at 2:26 PM Yonggang Luo <luoyonggang@gmail.com> wrote:

> 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>
>

Similar patch pending:
https://patchew.org/QEMU/20201219090637.1700900-1-pbonzini@redhat.com/20201219090637.1700900-3-pbonzini@redhat.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
>
>
>

-- 
Marc-André Lureau

[-- Attachment #2: Type: text/html, Size: 2510 bytes --]

  reply	other threads:[~2021-01-07 10:31 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 ` [PATCH v4 5/5] whpx: move whpx_lapic_state from header to c file Yonggang Luo
2021-01-07 10:28   ` Marc-André Lureau [this message]
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=CAJ+F1C+q9e08zX9OqkS4294oCNBAf-Gs7L9AomtYrc7vKyqCEA@mail.gmail.com \
    --to=marcandre.lureau@gmail.com \
    --cc=emaste@freebsd.org \
    --cc=luoyonggang@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.