Merge pull request #153 from liubin/feature/152-add-pvpanic-and-dump-guest-memory-support

qemu: add pvpanic and dump guest memory support
This commit is contained in:
Peng Tao
2020-10-20 13:20:39 +08:00
committed by GitHub
4 changed files with 64 additions and 1 deletions

View File

@@ -1205,3 +1205,18 @@ func TestAppendFwcfg(t *testing.T) {
}
testAppend(fwcfg, fwcfgString, t)
}
func TestAppendPVPanicDevice(t *testing.T) {
testCases := []struct {
dev Device
out string
}{
{nil, ""},
{PVPanicDevice{}, "-device pvpanic"},
{PVPanicDevice{NoShutdown: true}, "-device pvpanic -no-shutdown"},
}
for _, tc := range testCases {
testAppend(tc.dev, tc.out, t)
}
}