@@ -723,6 +723,13 @@ type BlockDirtyBitmapAdd struct {
723
723
Autoload * bool `json:"autoload,omitempty"`
724
724
}
725
725
726
+ // BlockDirtyBitmapSha256 -> BlockDirtyBitmapSha256 (struct)
727
+
728
+ // BlockDirtyBitmapSha256 implements the "BlockDirtyBitmapSha256" QMP API type.
729
+ type BlockDirtyBitmapSha256 struct {
730
+ Sha256 string `json:"sha256"`
731
+ }
732
+
726
733
// BlockDirtyInfo -> BlockDirtyInfo (struct)
727
734
728
735
// BlockDirtyInfo implements the "BlockDirtyInfo" QMP API type.
@@ -14775,6 +14782,40 @@ func (m *Monitor) XColoLostHeartbeat() (err error) {
14775
14782
return
14776
14783
}
14777
14784
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
+
14778
14819
// xen-colo-do-checkpoint -> XenColoDoCheckpoint (command)
14779
14820
14780
14821
// XenColoDoCheckpoint implements the "xen-colo-do-checkpoint" QMP API call.
0 commit comments