Skip to content
Snippets Groups Projects
Commit 402585ae authored by Zhi Yong Wu's avatar Zhi Yong Wu Committed by Pekka Enberg
Browse files

virtio: make set_features() void

parent 73bd0461
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ virtio_driver::~virtio_driver()
free_queues();
}
bool virtio_driver::setup_features()
void virtio_driver::setup_features()
{
u32 dev_features = get_device_features();
u32 drv_features = this->get_driver_features();
......@@ -73,9 +73,6 @@ bool virtio_driver::setup_features()
set_event_idx_cap(true);
set_guest_features(subset);
return subset != 0;
}
void virtio_driver::dump_config()
......
......@@ -165,7 +165,7 @@ public:
protected:
// Actual drivers should implement this on top of the basic ring features
virtual u32 get_driver_features() { return 1 << VIRTIO_RING_F_INDIRECT_DESC | 1 << VIRTIO_RING_F_EVENT_IDX; }
bool setup_features();
void setup_features();
protected:
pci::device& _dev;
interrupt_manager _msi;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment