qemu-devel
[Top][All Lists]
Advanced

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

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


From: Lin Ma
Subject: [Qemu-devel] The issue about parameters(uint64) of a device are treated as signed long int.
Date: Fri, 31 Jul 2015 16:28:10 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

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]