Skip to content

Commit

Permalink
virtio-mmio: do not pretend OSv implements version other than 2
Browse files Browse the repository at this point in the history
Signed-off-by: Waldemar Kozaczuk <[email protected]>
  • Loading branch information
wkozaczuk committed Nov 22, 2019
1 parent 09aa0b1 commit 7fe9f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/virtio-mmio.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ bool mmio_device::parse_config()

// Check device version
u32 version = mmio_getl(_addr_mmio + VIRTIO_MMIO_VERSION);
if (version < 1 || version > 2) {
if (version != 2) {
debugf( "Version %ld not supported!\n", version);
return false;
}
Expand Down

0 comments on commit 7fe9f50

Please sign in to comment.