Skip to content

Commit f035778

Browse files
committed
re-generate from v2.11.2
1 parent 39d5a90 commit f035778

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

qmp/raw/autogen.go

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,13 @@ type BlockDirtyBitmapAdd struct {
723723
Autoload *bool `json:"autoload,omitempty"`
724724
}
725725

726+
// BlockDirtyBitmapSha256 -> BlockDirtyBitmapSha256 (struct)
727+
728+
// BlockDirtyBitmapSha256 implements the "BlockDirtyBitmapSha256" QMP API type.
729+
type BlockDirtyBitmapSha256 struct {
730+
Sha256 string `json:"sha256"`
731+
}
732+
726733
// BlockDirtyInfo -> BlockDirtyInfo (struct)
727734

728735
// BlockDirtyInfo implements the "BlockDirtyInfo" QMP API type.
@@ -14775,6 +14782,40 @@ func (m *Monitor) XColoLostHeartbeat() (err error) {
1477514782
return
1477614783
}
1477714784

14785+
// x-debug-block-dirty-bitmap-sha256 -> XDebugBlockDirtyBitmapSha256 (command)
14786+
14787+
// XDebugBlockDirtyBitmapSha256 implements the "x-debug-block-dirty-bitmap-sha256" QMP API call.
14788+
func (m *Monitor) XDebugBlockDirtyBitmapSha256(node string, name string) (ret BlockDirtyBitmapSha256, err error) {
14789+
cmd := struct {
14790+
Node string `json:"node"`
14791+
Name string `json:"name"`
14792+
}{
14793+
node,
14794+
name,
14795+
}
14796+
bs, err := json.Marshal(map[string]interface{}{
14797+
"execute": "x-debug-block-dirty-bitmap-sha256",
14798+
"arguments": cmd,
14799+
})
14800+
if err != nil {
14801+
return
14802+
}
14803+
bs, err = m.mon.Run(bs)
14804+
if err != nil {
14805+
return
14806+
}
14807+
res := struct {
14808+
Res json.RawMessage `json:"return"`
14809+
}{}
14810+
if err = json.Unmarshal(bs, &res); err != nil {
14811+
return
14812+
}
14813+
if err = json.Unmarshal([]byte(res.Res), &ret); err != nil {
14814+
return
14815+
}
14816+
return
14817+
}
14818+
1477814819
// xen-colo-do-checkpoint -> XenColoDoCheckpoint (command)
1477914820

1478014821
// XenColoDoCheckpoint implements the "xen-colo-do-checkpoint" QMP API call.

0 commit comments

Comments
 (0)