qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] WHPX build broken


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] WHPX build broken
Date: Wed, 18 Sep 2019 13:59:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 9/18/19 1:23 PM, Philippe Mathieu-Daudé wrote:
> Hi Ilias,
> 
> On 9/18/19 10:19 AM, Ilias wrote:
>> Hi,
>>
>> Your recent patch
>>
>> https://github.com/qemu/qemu/commit/12e9493df9242a2051701e7eb64175d4e904acba#diff-d98f9b48cc332d226892f0db74a86b87
>>
>> to the file
>>
>> target/i386/whpx-all.c
>> <https://github.com/qemu/qemu/blob/master/target/i386/whpx-all.c>
>>
>> breaks compilation when WHPX is enabled.
> 
> How do you build QEMU? Which OS/compiler version, ./configure flags,
> etc...? (looking at adding your case in our build setup).

OK I could reproduce wiht the qemu:fedora Docker image and this
Android/MinGW commit:
https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/+/1bde9c3b14f3a3b081ada6e32da9f2870671b46f

$ ./configure --python=/usr/bin/python3
--cross-prefix=x86_64-w64-mingw32-
--target-list=x86_64-softmmu,i386-softmmu --enable-hax --enable-whpx
--extra-cflags="-Iandroid" --disable-werror

$ make x86_64-softmmu/all
[...]
  CC      x86_64-softmmu/target/i386/whpx-all.o
target/i386/whpx-all.c: In function 'whpx_accel_init':
target/i386/whpx-all.c:1378:25: error: dereferencing pointer to
incomplete type 'MachineState' {aka 'struct MachineState'}
     whpx->mem_quota = ms->ram_size;
                         ^~
make[1]: *** [rules.mak:69: target/i386/whpx-all.o] Error 1
  CC      x86_64-softmmu/trace/generated-helpers.o
make[1]: Target 'all' not remade because of errors.
make: *** [Makefile:471: x86_64-softmmu/all] Error 2

MachineState is indeed declared in "hw/boards.h".




reply via email to

[Prev in Thread] Current Thread [Next in Thread]