Merge pull request #772 from amshinde/block-support-q35

block: Advertise block support for q35
This commit is contained in:
Archana Shinde 2018-10-02 10:03:56 -07:00 committed by GitHub
commit 532e0bbf75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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()
}

View File

@ -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) {