mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-06 07:54:22 +01:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user