Add IgvmNativeVpContextX64 struct holding the register state (see igvm spec), and the qigvm_x86_load_context() function to load the register state. Wire up using two new functions: qigvm_x86_set_vp_context() is called from igvm file handling code and stores the boot processor context. qigvm_x86_bsp_reset() is called from i386 target cpu reset code and loads the context into the cpu registers. Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Luigi Leonardi <leonardi@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20251029105555.2492276-5-kraxel@redhat.com>
26 lines
479 B
C
26 lines
479 B
C
/*
|
|
* QEMU IGVM, stubs
|
|
*
|
|
* Copyright (C) 2026 Red Hat
|
|
*
|
|
* Authors:
|
|
* Gerd Hoffmann <kraxel@redhat.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
|
|
#include "system/igvm.h"
|
|
|
|
int qigvm_x86_get_mem_map_entry(int index,
|
|
ConfidentialGuestMemoryMapEntry *entry,
|
|
Error **errp)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int qigvm_x86_set_vp_context(void *data, int index, Error **errp)
|
|
{
|
|
return -1;
|
|
}
|