From: Paolo Bonzini <pbonzini@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: sunilmut@microsoft.com, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [PATCH] whpx: fix compilation
Date: Fri, 18 Dec 2020 11:28:47 +0100 [thread overview]
Message-ID: <9ea55256-e3fd-e8e7-3b70-9c690b09dc74@redhat.com> (raw)
In-Reply-To: <CAMxuvayDzUmpBg8n10zD=7pYtKtwQZs1n0wAvPjMzKTZ4ZNuGQ@mail.gmail.com>
On 18/12/20 11:08, Marc-André Lureau wrote:
> > #ifdef CONFIG_WHPX
> >
> > -#include "whp-dispatch.h"
> > +#include <windows.h>
> > +#include <WinHvPlatform.h>
> > +#include <WinHvEmulation.h>
> >
> > struct whpx_state {
> > uint64_t mem_quota;
> >
>
> This is wrong, just "git mv target/i386/whpx/whp-dispatch.h
> include/sysemu" instead (and possibly change the #include line to
> sysemu/whp-dispatch.h).
>
>
> Wrong? It fixes the build. So whatever is in whp-dispatch, it's not
> exactly necessary. Why should it be included?
Did you read the code that initializes whp-dispatch, or even easier try
to find the patch the introduced it ("git log --follow
target/i386/whpx/whp-dispatch.h")? Marc-André, I expect you to know
better than "it fixes the build, ergo it is correct"...
> Furthermore, I tried your suggestion first. But it fails with other
> include issues. I can probably solve them differently, but why should
> whp-dispatch be in include/sysemu?
It shouldn't indeed, hence the second suggestion:
> But I wonder if whp-dispatch.h is needed at all in this file. If we
> can just include it in whpx-all.c and whpx-apic.c, that would be much
> better.
>
> May be, but how does this solve the issue with include/sysemu/whpx.h ?
Because "just" including it in those two .c files implies removing it
from include/sysemu/whpx.h. I was a bit concise, I admit.
Thanks,
Paolo
next prev parent reply other threads:[~2020-12-18 10:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-18 8:46 [PATCH] whpx: fix compilation marcandre.lureau
2020-12-18 9:50 ` Paolo Bonzini
2020-12-18 10:08 ` Marc-André Lureau
2020-12-18 10:28 ` Paolo Bonzini [this message]
2020-12-18 11:07 ` Marc-André Lureau
2020-12-18 13:07 ` Paolo Bonzini
2020-12-18 11:25 ` Claudio Fontana
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=9ea55256-e3fd-e8e7-3b70-9c690b09dc74@redhat.com \
--to=pbonzini@redhat.com \
--cc=marcandre.lureau@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).