From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: malc <av1474-3kx9bbwexCU@public.gmane.org>
Cc: qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org,
kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org,
hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org
Subject: Re: [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits
Date: Wed, 01 Oct 2008 12:26:32 +0000 [thread overview]
Message-ID: <48E36C78.9020605@linux.vnet.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0809302317100.2511-KsBd/I2zj1m2ZGm1qqSgDg@public.gmane.org>
malc wrote:
> On Tue, 30 Sep 2008, ehrhardt@linux.vnet.ibm.com wrote:
>
>> From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
>>
>> *update*
>> further debugging according to some requests revealed that
>> ARCH_CFLAGS does
>> not contain all CFLAGS that might be needed, especially those
>> supplied via
>> extra-cflags. Therefore people supplying things via extra-cflags
>> instead of an
>> environment variable might have had issues.
>
> This part i don't get, there are few more checks before/after
> hostlongbits where no CFLAGS are added to the $cc argument list. What
> makes hostlongbits selection "special"? Do people specify -m32/-m64 via
> --extra-cflags?
>
it was there to ensure availability of the needed include paths to reach
wordsize.h.
But Hollis approach is much simpler, better and more reliable so never
mind :-)
>>
>> A recent kvm merge with qemu brought code for 64bit power that broke
>> cross
>> compilation. The issue is caused by configure trying to execute target
>> architecture binaries where configure is executed.
>
> Yes, i never thought about cross-compilation, my bad.
np, now it's fixed - thanks for quickly applying it.
>
>> I tried to change that detection so that it works with&without cross
>> compilation with only a small change and especially without an addtional
>> configure command line switch. Including the bits/wordsize.h header a
>> platform
>> usually can check its wordsize and by doing that configure can check the
>> hostlongbits without executing the binary. Instead it now stops after
>> preprocessing stage which resolved the __WORDSIZE constant and retrieves
>> that value.
>>
>> I don't like my new check style, but it is at least less broken than
>> before.
>> Another approach that was suggested was that qemu might end up needing
>> something like asm-offsets in the kernel to manage architecture sizes
>> etc.
>> Comments and other approaches welcome.
>>
>
> I think Hollis Blanchard's method is sound,
>
> Thank you for bringing this up.
>
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
WARNING: multiple messages have this Message-ID (diff)
From: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: malc <av1474-3kx9bbwexCU@public.gmane.org>
Cc: qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org,
kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org,
hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org
Subject: Re: [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2
Date: Wed, 01 Oct 2008 14:26:32 +0200 [thread overview]
Message-ID: <48E36C78.9020605@linux.vnet.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0809302317100.2511-KsBd/I2zj1m2ZGm1qqSgDg@public.gmane.org>
malc wrote:
> On Tue, 30 Sep 2008, ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org wrote:
>
>> From: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
>>
>> *update*
>> further debugging according to some requests revealed that
>> ARCH_CFLAGS does
>> not contain all CFLAGS that might be needed, especially those
>> supplied via
>> extra-cflags. Therefore people supplying things via extra-cflags
>> instead of an
>> environment variable might have had issues.
>
> This part i don't get, there are few more checks before/after
> hostlongbits where no CFLAGS are added to the $cc argument list. What
> makes hostlongbits selection "special"? Do people specify -m32/-m64 via
> --extra-cflags?
>
it was there to ensure availability of the needed include paths to reach
wordsize.h.
But Hollis approach is much simpler, better and more reliable so never
mind :-)
>>
>> A recent kvm merge with qemu brought code for 64bit power that broke
>> cross
>> compilation. The issue is caused by configure trying to execute target
>> architecture binaries where configure is executed.
>
> Yes, i never thought about cross-compilation, my bad.
np, now it's fixed - thanks for quickly applying it.
>
>> I tried to change that detection so that it works with&without cross
>> compilation with only a small change and especially without an addtional
>> configure command line switch. Including the bits/wordsize.h header a
>> platform
>> usually can check its wordsize and by doing that configure can check the
>> hostlongbits without executing the binary. Instead it now stops after
>> preprocessing stage which resolved the __WORDSIZE constant and retrieves
>> that value.
>>
>> I don't like my new check style, but it is at least less broken than
>> before.
>> Another approach that was suggested was that qemu might end up needing
>> something like asm-offsets in the kernel to manage architecture sizes
>> etc.
>> Comments and other approaches welcome.
>>
>
> I think Hollis Blanchard's method is sound,
>
> Thank you for bringing this up.
>
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-10-01 12:26 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-16 8:48 [PATCH 0/3] kvm-userspace: kvmppc: fix build for ppc ehrhardt
2008-09-16 8:48 ` ehrhardt
[not found] ` <1221554914-29751-1-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-09-16 8:48 ` [PATCH 1/3] kvm-userspace: kvmppc: fix file header in libkvm-powerpc.c ehrhardt
2008-09-16 8:48 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-30 6:36 ` [PATCH 1/3] kvm-userspace: kvmppc: fix file header in libkvm-powerpc.c v2 ehrhardt
2008-09-30 6:36 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-16 8:48 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling ehrhardt
2008-09-16 8:48 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-30 6:36 ` ehrhardt
2008-09-30 6:36 ` ehrhardt
2008-09-30 9:10 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2 ehrhardt
2008-09-30 9:10 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-30 14:13 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection Hollis Blanchard
2008-09-30 14:13 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2 Hollis Blanchard
2008-09-30 19:38 ` [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits malc
2008-09-30 19:38 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2 malc
[not found] ` <Pine.LNX.4.64.0809302317100.2511-KsBd/I2zj1m2ZGm1qqSgDg@public.gmane.org>
2008-10-01 12:26 ` Christian Ehrhardt [this message]
2008-10-01 12:26 ` [Qemu-devel] " Christian Ehrhardt
[not found] ` <1222765817-26552-1-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-09-30 21:19 ` [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits malc
2008-09-30 21:19 ` [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2 malc
2008-09-16 8:48 ` [PATCH] kvm-userspace: kvmppc: fix building userspace for powerpc ehrhardt
2008-09-16 8:48 ` ehrhardt
2008-09-30 6:36 ` [PATCH 0/3] kvm-userspace: kvmppc: fix build for ppc v2 ehrhardt
2008-09-30 6:36 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-30 14:19 ` Hollis Blanchard
2008-09-30 14:19 ` Hollis Blanchard
[not found] ` <1222756604-10899-1-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-10-02 12:57 ` Avi Kivity
2008-10-02 12:57 ` Avi Kivity
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=48E36C78.9020605@linux.vnet.ibm.com \
--to=ehrhardt@linux.vnet.ibm.com \
--cc=av1474-3kx9bbwexCU@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org \
/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.