qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 00/13] Add support for Mirror VM.


From: Tobin Feldman-Fitzthum
Subject: Re: [RFC PATCH 00/13] Add support for Mirror VM.
Date: Mon, 16 Aug 2021 11:07:23 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

On Mon, Aug 16 at 10:44 AM Ashish Kalra wrote:

> I am not sure if we really don't need QEMU's MMIO logic, I think that once the> > mirror VM starts booting and running the UEFI code, it might be only during
> the PEI or DXE phase where it will start actually running the MH code,
> so mirror VM probably still need to handles KVM_EXIT_IO when SEC phase does I/O, > I can see PIC accesses and Debug Agent initialization stuff in SEC startup code.

The migration handler prototype that we are releasing in the near future does not use the SEC or PEI phases in the mirror. We have some support code that runs in the main VM and sets up the migration handler entry point. QEMU starts the mirror pointing to this entry point, which does some more setup (like switching to long mode) and jumps to the migration handler.

-Tobin

> Addtionally this still requires CPUState{..} structure and the backing
> "X86CPU" structure, for example, as part of kvm_arch_post_run() to get
> the MemTxAttrs needed by kvm_handle_io().

> Thanks,
> Ashish




reply via email to

[Prev in Thread] Current Thread [Next in Thread]