diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2017-01-24 19:03:40 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-02-01 03:37:18 +0200 |
commit | d56ec1e98c0005933fe677d633484297f422691a (patch) | |
tree | 3d7ad387f92654b107f6618016b48dd0bbae0713 /net/vhost-user.c | |
parent | c25d97c4ff37d48aeda395cb5bfb8182b786f0e1 (diff) |
vhost: skip ROM sections
vhost does not support RO protections on memory at the moment - adding
ROMs would mean that e.g. a buggy guest might change them in-memory - a
condition from which guest reset does not recover. Not nice.
We also definitely don't want to try logging writes into ROMs -
in particular guests set very high addresses for ROM BARs
so logging these writes would waste a lot of memory.
Maybe ROMs could be supported with the iotlb variant -
not sure, but there seems to be no good reason for virtio
to try to do DMA from ROM. So let's just skip ROM memory.
Suggested-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Tested-by: Laurent Vivier <lvivier@redhat.com>
Diffstat (limited to 'net/vhost-user.c')
0 files changed, 0 insertions, 0 deletions