[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option |
Date: |
Mon, 3 Jul 2017 12:25:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
On 03/07/2017 12:20, Daniel P. Berrange wrote:
>>
>> +if test "$tcg" = "no"; then
>> + for target in $target_list; do
>> + if test "$softmmu" = "yes"; then
>> + case $target in
>> + i386-softmmu|x86_64-softmmu)
>> + ;;
>> + *)
>> + error_exit "The current $target can't support disable-tcg,"\
>> + "only i386-softmmu|x86_64-softmmu support disable-tcg"
>> + ;;
> This looks too simplistic in its logic.
>
> You can disable TCG, if-and-only-if the system emulator supports KVM.
>
> KVM is supported on many architectures, not only x86-64 & i386.
>
> KVM is only supported if the guest emulator architecture matches the
> host build target architecture.
>
> ie if you are building an x86_64 system emulator on a PPC64 host,
> then you can't disable TCG.
>
> So this needs rewriting to *not* special case x86_64 / i386. Instead
> you need to compare & match build target / system emulator architectures,
> across all architectures supporting KVM.
i386-softmmu and x86_64-softmmu are singled out here, because they're
the only targets where --disable-tcg compiles. For the others, more
work is needed (see patches 6-15 in Yang Zhong's series).
The part that is missing in this patch is disabling non-hypervisor
targets when --disable-tcg is specified. My original patch built only
i386-softmmu and x86_64-softmmu if you specified --disable-tcg, see
https://lists.nongnu.org/archive/html/qemu-devel/2012-09/msg02570.html
https://lists.nongnu.org/archive/html/qemu-devel/2012-09/msg02571.html
Paolo
- [Qemu-devel] [PATCH v2 00/15] add disable-tcg option for x86 build, Yang Zhong, 2017/07/03
- [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option, Yang Zhong, 2017/07/03
- Re: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option, Daniel P. Berrange, 2017/07/03
- Re: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option,
Paolo Bonzini <=
- Re: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option, Daniel P. Berrange, 2017/07/03
- Re: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option, Paolo Bonzini, 2017/07/03
- Re: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option, Thomas Huth, 2017/07/03
- Re: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option, Daniel P. Berrange, 2017/07/03
- Re: [Qemu-devel] [PATCH v2 01/15] configure: add the disable-tcg option, Paolo Bonzini, 2017/07/03
[Qemu-devel] [PATCH v2 02/15] vl: add tcg_enabled() for tcg related code, Yang Zhong, 2017/07/03
[Qemu-devel] [PATCH v2 03/15] tcg: tcg_handle_interrupt() function, Yang Zhong, 2017/07/03
[Qemu-devel] [PATCH v2 04/15] tcg: change tcg_enabled(), Yang Zhong, 2017/07/03