Michal Privoznik 677156f662 conf: Introduce <address/> for virtio-mem and virtio-pmem
Both virtio-mem and virtio-pmem devices have '.memaddr' attribute
which controls the address where they are mapped in the guest
memory. Ideally, users do not need to specify this as QEMU does
the right thing and computes addresses automatically on startup.

But soon, we will need to record this address as it is part of
guest ABI. And also, there might be some users that want to
control this value. Now, we are in a bit of a pickle, because
both these device types already have a PCI address, therefore we
can't just use <address/> blindly. But what we can do, is
introduce <address/> under the <target/> element. This is also
more conceptual, as knobs under <target/> control guest visible
config of memory device (and .memaddr surely falls into that
category).

NB, SgxEPCDeviceInfo struct in QMP definition also has .memaddr
attribute, but because of the way we build cmd line there's no
(easy) way to set the attribute. So ignore that for now.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2023-05-26 16:44:42 +02:00
..
2023-02-21 10:58:59 +01:00
2023-05-17 16:54:23 +02:00
2023-05-17 16:54:23 +02:00
2023-04-27 11:06:42 +02:00
2022-06-22 15:29:44 +02:00
2022-04-07 15:10:26 +02:00
2022-04-07 15:10:26 +02:00
2023-04-27 11:06:42 +02:00
2022-05-24 12:19:16 +02:00
2023-01-12 11:40:21 +01:00
2022-04-01 16:33:19 +02:00
2022-03-08 17:40:47 +01:00
2022-04-01 16:33:19 +02:00
2022-03-08 17:40:47 +01:00
2023-05-17 16:54:24 +02:00
2017-08-02 15:00:28 -04:00
2023-05-17 16:54:24 +02:00
2022-03-10 17:52:07 +01:00
2023-05-18 10:06:51 +02:00
2021-04-15 15:42:21 +02:00
2022-04-14 11:54:28 +02:00
2022-04-07 15:10:26 +02:00
2022-03-08 17:40:47 +01:00
2022-07-18 11:10:55 +02:00
2022-07-18 11:10:55 +02:00
2022-05-24 12:19:15 +02:00