[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V2 05/22] vl: memfd-alloc option
From: |
Steven Sistare |
Subject: |
Re: [PATCH V2 05/22] vl: memfd-alloc option |
Date: |
Wed, 6 Jan 2021 16:19:43 -0500 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 1/6/2021 3:10 PM, Paolo Bonzini wrote:
> Il mer 6 gen 2021, 17:37 Steven Sistare <steven.sistare@oracle.com
> <mailto:steven.sistare@oracle.com>> ha scritto:
>
> Yes, I considered that, but there are other memory regions that cannot be
> controlled
> by the command line but which must be preserved, such as vram, bios, and
> rom. If vram
> is not preserved, parts of the screen will be blank until the user
> performs some action
> which refreshes the display. bios and rom should be preserved rather
> than re-recreated
> with potentially different contents from the firmware images in the
> updated qemu package.
>
> However, your comment reminds me that I must add a few lines of code to
> preserve the
> memory-backend-memfd.
>
>
> A new option specific to memory is the wrong way to do this. If a special
> mode must be specified when starting QEMU, you can make it a -machine option
> and block the QMP commands unless it's specified. Otherwise you can use
> "normal" migration to marshal and unmarshal across the update those memory
> regions that aren't backed by shared memory or memfd.
>
> Also, because of the mess that vl.c had grown into, adding new "simple"
> options is going to be very very hard. In fact I am working on turning many
> options like -smp or -m into syntactic sugar for -machine; at some point I
> would like to (almost) forbid adding _any_ new option.
Will do. Thanks for the heads up on the future of vl.c.
I defined the option independently of cpr for generality. Do you think this
could be useful?
If yes, I will name and define the -machine option to use memfd;
if no, I will name and define it to enable cpr, and implicitly enable memfd
without saying so.
- Steve
- [PATCH V2 06/22] vl: add helper to request re-exec, (continued)
- [PATCH V2 06/22] vl: add helper to request re-exec, Steve Sistare, 2021/01/05
- [PATCH V2 04/22] util: env var helpers, Steve Sistare, 2021/01/05
- [PATCH V2 08/22] cpr: QMP interfaces, Steve Sistare, 2021/01/05
- [PATCH V2 09/22] cpr: HMP interfaces, Steve Sistare, 2021/01/05
- [PATCH V2 10/22] pci: export functions for cpr, Steve Sistare, 2021/01/05
- [PATCH V2 07/22] cpr, Steve Sistare, 2021/01/05
- [PATCH V2 05/22] vl: memfd-alloc option, Steve Sistare, 2021/01/05
[PATCH V2 12/22] vfio-pci: cpr, Steve Sistare, 2021/01/05
[PATCH V2 16/22] chardev: cpr for pty, Steve Sistare, 2021/01/05
[PATCH V2 18/22] chardev: cpr for sockets, Steve Sistare, 2021/01/05
[PATCH V2 19/22] monitor: cpr support, Steve Sistare, 2021/01/05
[PATCH V2 17/22] chardev: socket accept subroutine, Steve Sistare, 2021/01/05
[PATCH V2 20/22] cpr: only-cpr-capable option, Steve Sistare, 2021/01/05
[PATCH V2 22/22] simplify savevm, Steve Sistare, 2021/01/05
[PATCH V2 14/22] chardev: cpr framework, Steve Sistare, 2021/01/05