From: Anthony Liguori <aliguori@us.ibm.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org, Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] qapi: add 'query-target' command to return target arch/bit size
Date: Tue, 21 Aug 2012 08:21:29 -0500 [thread overview]
Message-ID: <87lih8s7mu.fsf@codemonkey.ws> (raw)
In-Reply-To: <20120821100503.GF7982@redhat.com>
"Daniel P. Berrange" <berrange@redhat.com> writes:
> On Mon, Aug 20, 2012 at 04:48:24PM -0500, Anthony Liguori wrote:
>> "Daniel P. Berrange" <berrange@redhat.com> writes:
>>
>> > From: "Daniel P. Berrange" <berrange@redhat.com>
>> >
>> > Add a 'query-target' QAPI command to allow management applications
>> > to determine what target architecture a QEMU binary is emulating
>> > without having to parse the binary name or -help output
>> >
>> > $ qmp-shell -p /tmp/qemu
>> > (QEMU) query-target
>> > { u'return': { u'arch': u'x86_64', u'bits': 64}}
>>
>> "bits" is really ambiguous. What it means in QEMU (specifically the
>> value you are returning) is probably not what you expect it to mean.
>
> My intent was to indicate the pointer word size for the architecture.
> eg 64 for x86_64, ppc64, etc, and 32 and i686, ppc, etc. Probably
> should have called it 'wordsize' or something like that
So this is physical address size which doesn't necessarily correspond to
whether you can run a "64-bit" OS or not. As Peter mentioned, i386 can
have a larger physical address size even though it's limited to 32-bit
guests.
We really don't need to use a physical address size < 64-bit anymore.
It's just a matter of time before someone comes in and fixes
TARGET_PHYS_ADDR_BITS to 64 which ought to significantly reduce the
build time since we don't need to duplicate objects anymore.
So yeah, removing 'bits' is probably a good idea.
> # virsh capabilities
> ....snip...
> <guest>
> <os_type>hvm</os_type>
> <arch name='arm'>
> <wordsize>32</wordsize>
> <emulator>/bin/qemu-system-arm</emulator>
> ...
>
> Currently we just have a table of arch name -> wordsize mapping
> data in libvirt. I figured if I was adding a 'query-target' command
> to QEMU, we might as well include this info too. It is not critical
> though if you'd rather we omitted it though.
Does anyone actually use wordsize that libvirt reports? What decisions
are made with that information?
I'd much rather QEMU provide this kind of information to libvirt but
understanding how it's used is important to figure out what to expose.
Regards,
Anthony Liguori
>
> Regards,
> Daniel
> --
> |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
> |: http://libvirt.org -o- http://virt-manager.org :|
> |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
> |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
prev parent reply other threads:[~2012-08-21 13:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-20 14:31 [Qemu-devel] [PATCH] qapi: add 'query-target' command to return target arch/bit size Daniel P. Berrange
2012-08-20 15:47 ` [Qemu-devel] For 1.2: " Eric Blake
2012-08-20 19:02 ` [Qemu-devel] " Luiz Capitulino
2012-08-21 10:07 ` Daniel P. Berrange
2012-08-21 12:53 ` Luiz Capitulino
2012-08-21 13:07 ` Daniel P. Berrange
2012-08-22 13:20 ` Anthony Liguori
2012-08-20 21:48 ` Anthony Liguori
2012-08-21 10:05 ` Daniel P. Berrange
2012-08-21 10:17 ` Peter Maydell
2012-08-21 10:24 ` Daniel P. Berrange
2012-08-21 13:21 ` Anthony Liguori [this message]
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=87lih8s7mu.fsf@codemonkey.ws \
--to=aliguori@us.ibm.com \
--cc=berrange@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=qemu-devel@nongnu.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 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).