mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 11:06:21 +00:00
block: Advertise block support for q35
Add block device capability for q35 as this machine type supports it. This was never added with the introduction of q35 support. Fixes #771 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
a8284f875b
commit
0cab1924c2
@ -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