qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] The issue about parameters(uint64) of a device are trea


From: Lin Ma
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
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

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




reply via email to

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