Alex Bennée 083b9bd7a1 hw/virtio/vhost: re-factor vhost-section and allow DIRTY_MEMORY_CODE
The purpose of vhost_section is to identify RAM regions that need to
be made available to a vhost client. However when running under TCG
all RAM sections have DIRTY_MEMORY_CODE set which leads to problems
down the line.

Re-factor the code so:

  - steps are clearer to follow
  - reason for rejection is recorded in the trace point
  - we allow DIRTY_MEMORY_CODE

We expand the comment to explain that kernel based vhost has specific
support for migration tracking.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Fabiano Rosas <farosas@linux.ibm.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200605154929.26910-11-alex.bennee@linaro.org>
2020-06-08 17:04:19 +01:00
..
2020-05-15 07:08:14 +02:00
2020-05-21 22:05:27 +01:00
2020-05-15 07:08:52 +02:00
2020-05-18 19:05:25 +02:00
2020-05-15 07:08:14 +02:00
2020-05-15 07:08:14 +02:00
2020-05-15 07:08:14 +02:00
2020-05-15 07:08:14 +02:00
2020-05-15 07:08:52 +02:00
2020-06-05 17:13:11 +02:00
2020-05-15 07:08:52 +02:00
2019-12-17 09:01:14 +01:00
2019-12-17 09:01:14 +01:00