On Thu, Jul 6, 2023 at 8:29 AM Viresh Kumar viresh.kumar@linaro.org wrote:
Currently, the grant mapping related device tree properties are added if the backend domain is not Dom0. While Dom0 is privileged and can do foreign mapping for the entire guest memory, it is still desired for Dom0 to access guest's memory via grant mappings and hence map only what is required.
This commit adds the "grant_usage" parameter for virtio devices, which provides better control over the functionality.
Signed-off-by: Viresh Kumar viresh.kumar@linaro.org Reviewed-by: Anthony PERARD anthony.perard@citrix.com
Golang bits: Acked-by: George Dunlap george.dunlap@cloud.com