Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #772 from amshinde/block-support-q35
Browse files Browse the repository at this point in the history
block: Advertise block support for q35
  • Loading branch information
amshinde authored Oct 2, 2018
2 parents 9bc5828 + 0cab192 commit 532e0bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions virtcontainers/qemu_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
2 changes: 1 addition & 1 deletion virtcontainers/qemu_amd64_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 532e0bb

Please sign in to comment.