@@ -1761,7 +1761,7 @@ type BlockdevOptionsGluster struct {
1761
1761
Volume string `json:"volume"`
1762
1762
Path string `json:"path"`
1763
1763
Server []GlusterServer `json:"server"`
1764
- DebugLevel * int64 `json:"debug-level ,omitempty"`
1764
+ Debug * int64 `json:"debug,omitempty"`
1765
1765
Logfile * string `json:"logfile,omitempty"`
1766
1766
}
1767
1767
@@ -1941,7 +1941,7 @@ type BlockdevOptionsNfs struct {
1941
1941
TCPSynCount * int64 `json:"tcp-syn-count,omitempty"`
1942
1942
ReadaheadSize * int64 `json:"readahead-size,omitempty"`
1943
1943
PageCacheSize * int64 `json:"page-cache-size,omitempty"`
1944
- DebugLevel * int64 `json:"debug-level ,omitempty"`
1944
+ Debug * int64 `json:"debug,omitempty"`
1945
1945
}
1946
1946
1947
1947
func (BlockdevOptionsNfs ) isBlockdevOptions () {}
@@ -3355,6 +3355,7 @@ type CPUDefinitionInfo struct {
3355
3355
MigrationSafe * bool `json:"migration-safe,omitempty"`
3356
3356
Static bool `json:"static"`
3357
3357
UnavailableFeatures []string `json:"unavailable-features,omitempty"`
3358
+ Typename string `json:"typename"`
3358
3359
}
3359
3360
3360
3361
// CpuInfo -> CPUInfo (flat union)
@@ -4149,11 +4150,12 @@ type GlusterServer interface {
4149
4150
4150
4151
// GlusterServerTCP is an implementation of GlusterServer.
4151
4152
type GlusterServerTCP struct {
4152
- Host string `json:"host"`
4153
- Port string `json:"port"`
4154
- To * uint16 `json:"to,omitempty"`
4155
- Ipv4 * bool `json:"ipv4,omitempty"`
4156
- Ipv6 * bool `json:"ipv6,omitempty"`
4153
+ Host string `json:"host"`
4154
+ Port string `json:"port"`
4155
+ Numeric * bool `json:"numeric,omitempty"`
4156
+ To * uint16 `json:"to,omitempty"`
4157
+ Ipv4 * bool `json:"ipv4,omitempty"`
4158
+ Ipv6 * bool `json:"ipv6,omitempty"`
4157
4159
}
4158
4160
4159
4161
func (GlusterServerTCP ) isGlusterServer () {}
@@ -4572,11 +4574,12 @@ type ImageInfoSpecificVMDK struct {
4572
4574
4573
4575
// InetSocketAddress implements the "InetSocketAddress" QMP API type.
4574
4576
type InetSocketAddress struct {
4575
- Host string `json:"host"`
4576
- Port string `json:"port"`
4577
- To * uint16 `json:"to,omitempty"`
4578
- Ipv4 * bool `json:"ipv4,omitempty"`
4579
- Ipv6 * bool `json:"ipv6,omitempty"`
4577
+ Host string `json:"host"`
4578
+ Port string `json:"port"`
4579
+ Numeric * bool `json:"numeric,omitempty"`
4580
+ To * uint16 `json:"to,omitempty"`
4581
+ Ipv4 * bool `json:"ipv4,omitempty"`
4582
+ Ipv6 * bool `json:"ipv6,omitempty"`
4580
4583
}
4581
4584
4582
4585
// InputAxis -> InputAxis (enum)
@@ -5094,6 +5097,7 @@ type MachineInfo struct {
5094
5097
5095
5098
// Memdev implements the "Memdev" QMP API type.
5096
5099
type Memdev struct {
5100
+ ID * string `json:"id,omitempty"`
5097
5101
Size uint64 `json:"size"`
5098
5102
Merge bool `json:"merge"`
5099
5103
Dump bool `json:"dump"`
@@ -5807,6 +5811,7 @@ const (
5807
5811
QCryptoCipherAlgorithmAes192
5808
5812
QCryptoCipherAlgorithmAes256
5809
5813
QCryptoCipherAlgorithmDesRfb
5814
+ QCryptoCipherAlgorithm3Des
5810
5815
QCryptoCipherAlgorithmCast5128
5811
5816
QCryptoCipherAlgorithmSerpent128
5812
5817
QCryptoCipherAlgorithmSerpent192
@@ -5827,6 +5832,8 @@ func (e QCryptoCipherAlgorithm) String() string {
5827
5832
return "aes-256"
5828
5833
case QCryptoCipherAlgorithmDesRfb :
5829
5834
return "des-rfb"
5835
+ case QCryptoCipherAlgorithm3Des :
5836
+ return "3des"
5830
5837
case QCryptoCipherAlgorithmCast5128 :
5831
5838
return "cast5-128"
5832
5839
case QCryptoCipherAlgorithmSerpent128 :
@@ -5857,6 +5864,8 @@ func (e QCryptoCipherAlgorithm) MarshalJSON() ([]byte, error) {
5857
5864
return json .Marshal ("aes-256" )
5858
5865
case QCryptoCipherAlgorithmDesRfb :
5859
5866
return json .Marshal ("des-rfb" )
5867
+ case QCryptoCipherAlgorithm3Des :
5868
+ return json .Marshal ("3des" )
5860
5869
case QCryptoCipherAlgorithmCast5128 :
5861
5870
return json .Marshal ("cast5-128" )
5862
5871
case QCryptoCipherAlgorithmSerpent128 :
@@ -5891,6 +5900,8 @@ func (e *QCryptoCipherAlgorithm) UnmarshalJSON(bs []byte) error {
5891
5900
* e = QCryptoCipherAlgorithmAes256
5892
5901
case "des-rfb" :
5893
5902
* e = QCryptoCipherAlgorithmDesRfb
5903
+ case "3des" :
5904
+ * e = QCryptoCipherAlgorithm3Des
5894
5905
case "cast5-128" :
5895
5906
* e = QCryptoCipherAlgorithmCast5128
5896
5907
case "serpent-128" :
@@ -6254,6 +6265,9 @@ const (
6254
6265
QKeyCodeCompose
6255
6266
QKeyCodePause
6256
6267
QKeyCodeRo
6268
+ QKeyCodeHiragana
6269
+ QKeyCodeHenkan
6270
+ QKeyCodeYen
6257
6271
QKeyCodeKpComma
6258
6272
QKeyCodeKpEquals
6259
6273
QKeyCodePower
@@ -6510,6 +6524,12 @@ func (e QKeyCode) String() string {
6510
6524
return "pause"
6511
6525
case QKeyCodeRo :
6512
6526
return "ro"
6527
+ case QKeyCodeHiragana :
6528
+ return "hiragana"
6529
+ case QKeyCodeHenkan :
6530
+ return "henkan"
6531
+ case QKeyCodeYen :
6532
+ return "yen"
6513
6533
case QKeyCodeKpComma :
6514
6534
return "kp_comma"
6515
6535
case QKeyCodeKpEquals :
@@ -6772,6 +6792,12 @@ func (e QKeyCode) MarshalJSON() ([]byte, error) {
6772
6792
return json .Marshal ("pause" )
6773
6793
case QKeyCodeRo :
6774
6794
return json .Marshal ("ro" )
6795
+ case QKeyCodeHiragana :
6796
+ return json .Marshal ("hiragana" )
6797
+ case QKeyCodeHenkan :
6798
+ return json .Marshal ("henkan" )
6799
+ case QKeyCodeYen :
6800
+ return json .Marshal ("yen" )
6775
6801
case QKeyCodeKpComma :
6776
6802
return json .Marshal ("kp_comma" )
6777
6803
case QKeyCodeKpEquals :
@@ -7038,6 +7064,12 @@ func (e *QKeyCode) UnmarshalJSON(bs []byte) error {
7038
7064
* e = QKeyCodePause
7039
7065
case "ro" :
7040
7066
* e = QKeyCodeRo
7067
+ case "hiragana" :
7068
+ * e = QKeyCodeHiragana
7069
+ case "henkan" :
7070
+ * e = QKeyCodeHenkan
7071
+ case "yen" :
7072
+ * e = QKeyCodeYen
7041
7073
case "kp_comma" :
7042
7074
* e = QKeyCodeKpComma
7043
7075
case "kp_equals" :
@@ -10201,12 +10233,14 @@ func (m *Monitor) DeviceListProperties(typename string) (ret []DevicePropertyInf
10201
10233
// device_add -> DeviceAdd (command)
10202
10234
10203
10235
// DeviceAdd implements the "device_add" QMP API call.
10204
- func (m * Monitor ) DeviceAdd (driver string , id string ) (err error ) {
10236
+ func (m * Monitor ) DeviceAdd (driver string , bus * string , id * string ) (err error ) {
10205
10237
cmd := struct {
10206
- Driver string `json:"driver"`
10207
- ID string `json:"id"`
10238
+ Driver string `json:"driver"`
10239
+ Bus * string `json:"bus,omitempty"`
10240
+ ID * string `json:"id,omitempty"`
10208
10241
}{
10209
10242
driver ,
10243
+ bus ,
10210
10244
id ,
10211
10245
}
10212
10246
bs , err := json .Marshal (map [string ]interface {}{
0 commit comments