mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-12 14:48:13 +00:00
Merge pull request #772 from amshinde/block-support-q35
block: Advertise block support for q35
This commit is contained in:
commit
532e0bbf75
@ -102,8 +102,7 @@ func newQemuArch(config HypervisorConfig) qemuArch {
|
||||
func (q *qemuAmd64) capabilities() capabilities {
|
||||
var caps capabilities
|
||||
|
||||
// Only pc machine type supports hotplugging drives
|
||||
if q.machineType == QemuPC {
|
||||
if q.machineType == QemuPC || q.machineType == QemuQ35 {
|
||||
caps.setBlockDeviceHotplugSupport()
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ func TestQemuAmd64Capabilities(t *testing.T) {
|
||||
|
||||
amd64 = newTestQemu(QemuQ35)
|
||||
caps = amd64.capabilities()
|
||||
assert.False(caps.isBlockDeviceHotplugSupported())
|
||||
assert.True(caps.isBlockDeviceHotplugSupported())
|
||||
}
|
||||
|
||||
func TestQemuAmd64Bridges(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user