diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2023-07-10 16:35:03 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-07-10 18:59:32 -0400 |
commit | e57fc3dec9508cfa81c1bedcaa6b7469995ac6a5 (patch) | |
tree | 3fa58646c6e3ad2074e84f1aa98c0a1c85d81438 /hw/net/virtio-net.c | |
parent | 031b1abacbdb3f4e016b6b926f7e7876c05339bb (diff) | |
download | qemu-e57fc3dec9508cfa81c1bedcaa6b7469995ac6a5.zip qemu-e57fc3dec9508cfa81c1bedcaa6b7469995ac6a5.tar.gz qemu-e57fc3dec9508cfa81c1bedcaa6b7469995ac6a5.tar.bz2 |
include: attempt to document device_class_set_props
I'm still not sure how I achieve by use case of the parent class
defining the following properties:
static Property vud_properties[] = {
DEFINE_PROP_CHR("chardev", VHostUserDevice, chardev),
DEFINE_PROP_UINT16("id", VHostUserDevice, id, 0),
DEFINE_PROP_UINT32("num_vqs", VHostUserDevice, num_vqs, 1),
DEFINE_PROP_END_OF_LIST(),
};
But for the specialisation of the class I want the id to default to
the actual device id, e.g.:
static Property vu_rng_properties[] = {
DEFINE_PROP_UINT16("id", VHostUserDevice, id, VIRTIO_ID_RNG),
DEFINE_PROP_UINT32("num_vqs", VHostUserDevice, num_vqs, 1),
DEFINE_PROP_END_OF_LIST(),
};
And so far the API for doing that isn't super clear.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230710153522.3469097-2-alex.bennee@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions