qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] RFC: do we need ordered dict?


From: Wei, Jiangang
Subject: [Qemu-devel] RFC: do we need ordered dict?
Date: Mon, 23 May 2016 10:14:38 +0000

Hi all,

I found a problem about the output of 'query-version'

As the qmp-command.hx said, it shoud be 
-> { "execute": "query-version" }
<- {
      "return":{
         "qemu":{
            "major":0,
            "minor":11,
            "micro":5
         },
         "package":""
      }
   }

Actually, It's as following,
-> { "execute": "query-version" }
<- {
      "return":{
         "qemu":{
            "micro":50,
            "minor":6,
            "major":2
         },
         "package":""
      }
   }

The reason is that the member ''qemu" is regarded as Un-ordered dict.
and  tdb_hash() returns the same bucket(225) for both  "micro" and
"minor". 
and The "major" is bigger (481).

All of the above metioned introduces the disorder for major , minor and
micro.

Thanks,
wei




reply via email to

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