[libvirt] [PATCH v2 0/3] Add "memfd" memory backing type

marcandre.lureau@redhat.com posted 3 patches 5 years, 6 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180917131457.29055-1-marcandre.lureau@redhat.com
docs/formatdomain.html.in                     |   9 +-
docs/schemas/domaincommon.rng                 |   1 +
src/conf/domain_conf.c                        |   3 +-
src/conf/domain_conf.h                        |   1 +
src/qemu/qemu_capabilities.c                  |  10 ++
src/qemu/qemu_capabilities.h                  |   2 +
src/qemu/qemu_command.c                       |  69 +++++++----
src/qemu/qemu_domain.c                        |  12 +-
.../caps_2.12.0.aarch64.replies               |  94 ++++++++++++---
.../caps_2.12.0.aarch64.xml                   |   4 +-
.../caps_2.12.0.ppc64.replies                 |  90 +++++++++++---
.../caps_2.12.0.ppc64.xml                     |   4 +-
.../caps_2.12.0.s390x.replies                 |  98 ++++++++++++----
.../caps_2.12.0.s390x.xml                     |   4 +-
.../caps_2.12.0.x86_64.replies                | 110 +++++++++++++-----
.../caps_2.12.0.x86_64.xml                    |   4 +-
.../caps_3.0.0.ppc64.replies                  |  90 +++++++++++---
.../qemucapabilitiesdata/caps_3.0.0.ppc64.xml |   4 +-
.../caps_3.0.0.riscv32.replies                |  86 +++++++++++---
.../caps_3.0.0.riscv32.xml                    |   2 +
.../caps_3.0.0.riscv64.replies                |  86 +++++++++++---
.../caps_3.0.0.riscv64.xml                    |   2 +
.../caps_3.0.0.x86_64.replies                 | 110 +++++++++++++-----
.../caps_3.0.0.x86_64.xml                     |   4 +-
.../memfd-memory-numa.x86_64-latest.args      |  34 ++++++
tests/qemuxml2argvdata/memfd-memory-numa.xml  |  36 ++++++
tests/qemuxml2argvtest.c                      |   2 +
27 files changed, 788 insertions(+), 183 deletions(-)
create mode 100644 tests/qemuxml2argvdata/memfd-memory-numa.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/memfd-memory-numa.xml
[libvirt] [PATCH v2 0/3] Add "memfd" memory backing type
Posted by marcandre.lureau@redhat.com 5 years, 6 months ago
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

This is an alternative series from "[PATCH 0/5] Use memfd if
possible". Instead of automatically using memfd for anonymous memory
when available (as suggested by Daniel), it introduces the "memfd"
memory backing type.

Although using memfd transparently when possible is a good idea, it is
a source of various complications for migration & save/restore. This
could eventually be challenged in a different series.

The first two patches have been modified and reviewed by John
Ferlan. Hopefully they can be merged early, regardless of the last
patch outcome, to avoid the painful rebase conflicts due to
capabilities checks introduction.

Thanks

Marc-André Lureau (3):
  qemu: add memory-backend-memfd capability check
  qemu: check memory-backend-memfd.hugetlb capability
  qemu: add memfd source type

 docs/formatdomain.html.in                     |   9 +-
 docs/schemas/domaincommon.rng                 |   1 +
 src/conf/domain_conf.c                        |   3 +-
 src/conf/domain_conf.h                        |   1 +
 src/qemu/qemu_capabilities.c                  |  10 ++
 src/qemu/qemu_capabilities.h                  |   2 +
 src/qemu/qemu_command.c                       |  69 +++++++----
 src/qemu/qemu_domain.c                        |  12 +-
 .../caps_2.12.0.aarch64.replies               |  94 ++++++++++++---
 .../caps_2.12.0.aarch64.xml                   |   4 +-
 .../caps_2.12.0.ppc64.replies                 |  90 +++++++++++---
 .../caps_2.12.0.ppc64.xml                     |   4 +-
 .../caps_2.12.0.s390x.replies                 |  98 ++++++++++++----
 .../caps_2.12.0.s390x.xml                     |   4 +-
 .../caps_2.12.0.x86_64.replies                | 110 +++++++++++++-----
 .../caps_2.12.0.x86_64.xml                    |   4 +-
 .../caps_3.0.0.ppc64.replies                  |  90 +++++++++++---
 .../qemucapabilitiesdata/caps_3.0.0.ppc64.xml |   4 +-
 .../caps_3.0.0.riscv32.replies                |  86 +++++++++++---
 .../caps_3.0.0.riscv32.xml                    |   2 +
 .../caps_3.0.0.riscv64.replies                |  86 +++++++++++---
 .../caps_3.0.0.riscv64.xml                    |   2 +
 .../caps_3.0.0.x86_64.replies                 | 110 +++++++++++++-----
 .../caps_3.0.0.x86_64.xml                     |   4 +-
 .../memfd-memory-numa.x86_64-latest.args      |  34 ++++++
 tests/qemuxml2argvdata/memfd-memory-numa.xml  |  36 ++++++
 tests/qemuxml2argvtest.c                      |   2 +
 27 files changed, 788 insertions(+), 183 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/memfd-memory-numa.x86_64-latest.args
 create mode 100644 tests/qemuxml2argvdata/memfd-memory-numa.xml

-- 
2.19.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v2 0/3] Add "memfd" memory backing type
Posted by Marc-André Lureau 5 years, 4 months ago
Hi

On Mon, Sep 17, 2018 at 5:15 PM <marcandre.lureau@redhat.com> wrote:
>
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Hi,
>
> This is an alternative series from "[PATCH 0/5] Use memfd if
> possible". Instead of automatically using memfd for anonymous memory
> when available (as suggested by Daniel), it introduces the "memfd"
> memory backing type.
>
> Although using memfd transparently when possible is a good idea, it is
> a source of various complications for migration & save/restore. This
> could eventually be challenged in a different series.
>
> The first two patches have been modified and reviewed by John
> Ferlan. Hopefully they can be merged early, regardless of the last
> patch outcome, to avoid the painful rebase conflicts due to
> capabilities checks introduction.

ping,

There is a minor qemu caps conflict now, and version should be updated.

thanks

>
> Thanks
>
> Marc-André Lureau (3):
>   qemu: add memory-backend-memfd capability check
>   qemu: check memory-backend-memfd.hugetlb capability
>   qemu: add memfd source type
>
>  docs/formatdomain.html.in                     |   9 +-
>  docs/schemas/domaincommon.rng                 |   1 +
>  src/conf/domain_conf.c                        |   3 +-
>  src/conf/domain_conf.h                        |   1 +
>  src/qemu/qemu_capabilities.c                  |  10 ++
>  src/qemu/qemu_capabilities.h                  |   2 +
>  src/qemu/qemu_command.c                       |  69 +++++++----
>  src/qemu/qemu_domain.c                        |  12 +-
>  .../caps_2.12.0.aarch64.replies               |  94 ++++++++++++---
>  .../caps_2.12.0.aarch64.xml                   |   4 +-
>  .../caps_2.12.0.ppc64.replies                 |  90 +++++++++++---
>  .../caps_2.12.0.ppc64.xml                     |   4 +-
>  .../caps_2.12.0.s390x.replies                 |  98 ++++++++++++----
>  .../caps_2.12.0.s390x.xml                     |   4 +-
>  .../caps_2.12.0.x86_64.replies                | 110 +++++++++++++-----
>  .../caps_2.12.0.x86_64.xml                    |   4 +-
>  .../caps_3.0.0.ppc64.replies                  |  90 +++++++++++---
>  .../qemucapabilitiesdata/caps_3.0.0.ppc64.xml |   4 +-
>  .../caps_3.0.0.riscv32.replies                |  86 +++++++++++---
>  .../caps_3.0.0.riscv32.xml                    |   2 +
>  .../caps_3.0.0.riscv64.replies                |  86 +++++++++++---
>  .../caps_3.0.0.riscv64.xml                    |   2 +
>  .../caps_3.0.0.x86_64.replies                 | 110 +++++++++++++-----
>  .../caps_3.0.0.x86_64.xml                     |   4 +-
>  .../memfd-memory-numa.x86_64-latest.args      |  34 ++++++
>  tests/qemuxml2argvdata/memfd-memory-numa.xml  |  36 ++++++
>  tests/qemuxml2argvtest.c                      |   2 +
>  27 files changed, 788 insertions(+), 183 deletions(-)
>  create mode 100644 tests/qemuxml2argvdata/memfd-memory-numa.x86_64-latest.args
>  create mode 100644 tests/qemuxml2argvdata/memfd-memory-numa.xml
>
> --
> 2.19.0
>
> --
> libvir-list mailing list
> libvir-list@redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list



-- 
Marc-André Lureau

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v2 0/3] Add "memfd" memory backing type
Posted by Marc-André Lureau 5 years, 4 months ago
Hi
On Thu, Nov 8, 2018 at 4:40 PM Marc-André Lureau
<marcandre.lureau@gmail.com> wrote:
>
> Hi
>
> On Mon, Sep 17, 2018 at 5:15 PM <marcandre.lureau@redhat.com> wrote:
> >
> > From: Marc-André Lureau <marcandre.lureau@redhat.com>
> >
> > Hi,
> >
> > This is an alternative series from "[PATCH 0/5] Use memfd if
> > possible". Instead of automatically using memfd for anonymous memory
> > when available (as suggested by Daniel), it introduces the "memfd"
> > memory backing type.
> >
> > Although using memfd transparently when possible is a good idea, it is
> > a source of various complications for migration & save/restore. This
> > could eventually be challenged in a different series.
> >
> > The first two patches have been modified and reviewed by John
> > Ferlan. Hopefully they can be merged early, regardless of the last
> > patch outcome, to avoid the painful rebase conflicts due to
> > capabilities checks introduction.
>
> ping,
>
> There is a minor qemu caps conflict now, and version should be updated.
>

fwiw, I pushed an updated tree
https://github.com/elmarco/libvirt/commits/memfd

waiting for some feedback on v2 before resending.

> thanks
>
> >
> > Thanks
> >
> > Marc-André Lureau (3):
> >   qemu: add memory-backend-memfd capability check
> >   qemu: check memory-backend-memfd.hugetlb capability
> >   qemu: add memfd source type
> >
> >  docs/formatdomain.html.in                     |   9 +-
> >  docs/schemas/domaincommon.rng                 |   1 +
> >  src/conf/domain_conf.c                        |   3 +-
> >  src/conf/domain_conf.h                        |   1 +
> >  src/qemu/qemu_capabilities.c                  |  10 ++
> >  src/qemu/qemu_capabilities.h                  |   2 +
> >  src/qemu/qemu_command.c                       |  69 +++++++----
> >  src/qemu/qemu_domain.c                        |  12 +-
> >  .../caps_2.12.0.aarch64.replies               |  94 ++++++++++++---
> >  .../caps_2.12.0.aarch64.xml                   |   4 +-
> >  .../caps_2.12.0.ppc64.replies                 |  90 +++++++++++---
> >  .../caps_2.12.0.ppc64.xml                     |   4 +-
> >  .../caps_2.12.0.s390x.replies                 |  98 ++++++++++++----
> >  .../caps_2.12.0.s390x.xml                     |   4 +-
> >  .../caps_2.12.0.x86_64.replies                | 110 +++++++++++++-----
> >  .../caps_2.12.0.x86_64.xml                    |   4 +-
> >  .../caps_3.0.0.ppc64.replies                  |  90 +++++++++++---
> >  .../qemucapabilitiesdata/caps_3.0.0.ppc64.xml |   4 +-
> >  .../caps_3.0.0.riscv32.replies                |  86 +++++++++++---
> >  .../caps_3.0.0.riscv32.xml                    |   2 +
> >  .../caps_3.0.0.riscv64.replies                |  86 +++++++++++---
> >  .../caps_3.0.0.riscv64.xml                    |   2 +
> >  .../caps_3.0.0.x86_64.replies                 | 110 +++++++++++++-----
> >  .../caps_3.0.0.x86_64.xml                     |   4 +-
> >  .../memfd-memory-numa.x86_64-latest.args      |  34 ++++++
> >  tests/qemuxml2argvdata/memfd-memory-numa.xml  |  36 ++++++
> >  tests/qemuxml2argvtest.c                      |   2 +
> >  27 files changed, 788 insertions(+), 183 deletions(-)
> >  create mode 100644 tests/qemuxml2argvdata/memfd-memory-numa.x86_64-latest.args
> >  create mode 100644 tests/qemuxml2argvdata/memfd-memory-numa.xml
> >
> > --
> > 2.19.0
> >
> > --
> > libvir-list mailing list
> > libvir-list@redhat.com
> > https://www.redhat.com/mailman/listinfo/libvir-list
>
>
>
> --
> Marc-André Lureau



-- 
Marc-André Lureau

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list