machine: allow early use of machine_require_guest_memfd
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 May 2024 11:29:53 +0000 (13:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jun 2024 09:01:06 +0000 (11:01 +0200)
commitdc0d28ca46c0e7ee3c055ad4da24022995bd3765
treeea38e045d3f15d85175beac75eca1a33684dc915
parentaa274c33c39e7de981dc195abe60e1a246c9d248
machine: allow early use of machine_require_guest_memfd

Ask the ConfidentialGuestSupport object whether to use guest_memfd
for KVM-backend private memory.  This bool can be set in instance_init
(or user_complete) so that it is available when the machine is created.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/machine.c
include/exec/confidential-guest-support.h
include/hw/boards.h