From: Lin Ma <lma@suse.com>
To: "pbonzini@redhat.com >> Paolo Bonzini" <pbonzini@redhat.com>
Cc: "qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] The issue about parameters(uint64) of a device are treated as signed long int.
Date: Fri, 07 Aug 2015 12:54:37 +0800 [thread overview]
Message-ID: <55C43A0D.9070000@suse.com> (raw)
In-Reply-To: <55BB319A.2010906@suse.com>
Hi Paolo,
As mentioned in below email, The type of wwn is reported as uint64, But
in qemu command line, The max valid value for wwn is
0x7fffffffffffffff. Obviously, it's treated as int64 there. I'd like to
know that does the highest bit of _world wide name_ have special
meaning and must be zero? May I have your thoughts?
Thanks,
Lin
在 2015年07月31日 16:28, Lin Ma 写道:
> Hi all,
>
> Because qemu uses strtoll to parse string in parse_str function of
> qapi/string-input-visitor.c, I'd like to know why the parameters of
> scsi-hd device which are specified as uint64(says wwn) are getting
> interpreted as signed long int's instead
>
> e.g:
> # qemu-system-x86_64 -device scsi-hd,?
> ......
> scsi-hd.wwn=uint64
> ......
>
> Does the highest bit of wwn value have special meaning and it must be
> a zero?
>
> Thanks in advance,
> Lin
next prev parent reply other threads:[~2015-08-07 4:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 8:28 [Qemu-devel] The issue about parameters(uint64) of a device are treated as signed long int Lin Ma
2015-08-07 4:54 ` Lin Ma [this message]
2015-08-07 12:09 ` Eric Blake
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=55C43A0D.9070000@suse.com \
--to=lma@suse.com \
--cc=pbonzini@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).