aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>2022-06-07 18:02:29 +0100
committerWill Deacon <will@kernel.org>2022-06-09 13:44:15 +0100
commite74b56e1495cce0c6a09d340c210f74266e755f8 (patch)
tree30fc372b4caf5f0d20152faccc79682aa70394ef
parent6daffe57762cb5863eef0441a2d40cc57cdde37b (diff)
downloadkvmtool-e74b56e1495cce0c6a09d340c210f74266e755f8.tar.gz
virtio/console: Add VIRTIO_F_ANY_LAYOUT feature
Our virtio-console implementation already supports ANY_LAYOUT, because buffers are accessed with scatter-gather operations. Advertise the VIRTIO_F_ANY_LAYOUT feature. Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Link: https://lore.kernel.org/r/20220607170239.120084-15-jean-philippe.brucker@arm.com Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r--virtio/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virtio/console.c b/virtio/console.c
index 610995de..c42c8b9f 100644
--- a/virtio/console.c
+++ b/virtio/console.c
@@ -122,7 +122,7 @@ static size_t get_config_size(struct kvm *kvm, void *dev)
static u32 get_host_features(struct kvm *kvm, void *dev)
{
- return 0;
+ return 1 << VIRTIO_F_ANY_LAYOUT;
}
static void notify_status(struct kvm *kvm, void *dev, u32 status)