mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
virtio: move host_features
Move host_features from the individual transport proxies into the virtio device. Transports may continue to add feature bits during device plugging. This should it make easier to offer different sets of host features for virtio-1/transitional support. Tested-by: Shannon Zhao <shannon.zhao@linaro.org> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2332333c97
commit
6b8f102054
11 changed files with 30 additions and 99 deletions
|
@ -47,7 +47,6 @@ typedef struct VirtioBusClass {
|
|||
int (*load_config)(DeviceState *d, QEMUFile *f);
|
||||
int (*load_queue)(DeviceState *d, int n, QEMUFile *f);
|
||||
int (*load_done)(DeviceState *d, QEMUFile *f);
|
||||
unsigned (*get_features)(DeviceState *d);
|
||||
bool (*query_guest_notifiers)(DeviceState *d);
|
||||
int (*set_guest_notifiers)(DeviceState *d, int nvqs, bool assign);
|
||||
int (*set_host_notifier)(DeviceState *d, int n, bool assigned);
|
||||
|
|
|
@ -74,6 +74,7 @@ struct VirtIODevice
|
|||
uint8_t isr;
|
||||
uint16_t queue_sel;
|
||||
uint32_t guest_features;
|
||||
uint32_t host_features;
|
||||
size_t config_len;
|
||||
void *config;
|
||||
uint16_t config_vector;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue