mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
This change adds common kvm specific support to handle KVM VM file descriptor change. KVM VM file descriptor can change as a part of confidential guest reset mechanism. A new function api kvm_arch_on_vmfd_change() per architecture platform is added in order to implement architecture specific changes required to support it. A subsequent patch will add x86 specific implementation for kvm_arch_on_vmfd_change() as currently only x86 supports confidential guest reset. Signed-off-by: Ani Sinha <anisinha@redhat.com> Link: https://lore.kernel.org/r/20260225035000.385950-6-anisinha@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
23 lines
368 B
C
23 lines
368 B
C
/*
|
|
* kvm target arch specific stubs
|
|
*
|
|
* Copyright (c) 2026 Red Hat, Inc.
|
|
*
|
|
* Author:
|
|
* Ani Sinha <anisinha@redhat.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#include "qemu/osdep.h"
|
|
#include "system/kvm.h"
|
|
|
|
int kvm_arch_on_vmfd_change(MachineState *ms, KVMState *s)
|
|
{
|
|
abort();
|
|
}
|
|
|
|
bool kvm_arch_supports_vmfd_change(void)
|
|
{
|
|
return false;
|
|
}
|