[PATCH 00/16] New update from 6.9 to 7.8

Han Han (16): news: make SEV attrs 'cbitpos' & 'reducedPhysBits' optional news: support device stats collection for SR-IOV VF hostdev news: cpu_map: Add EPYC-Rome cpu model news: cpu: Support for XML validation in cpu comparison news: logging: allow max_len=0 to disable log rollover news: qemu: Set noqueue qdisc for TAP devices news: qemu: Introduce virtio free page reporting feature news: qemu: virtiofs can be used without NUMA nodes news: qemu: Add 'fmode' and 'dmode' options for 9pfs news: Introduce "migrate_tls_force" to qemu.conf news: qemu: support kvm-poll-control performance hint news: cpu_map: Add Snowridge cpu model news: qemu: Add support for NFS disk protocol news: Support vhostuser in virsh attach-interface since v7.7.0 news: Add queue_size option to virtio disk news: Validation flags for creating net, nwfilter-binding, net port NEWS.rst | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 7903449f9b..b17d6f58ec 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1192,6 +1192,13 @@ v6.9.0 (2020-11-02) using ``<interface type='vdpa'>``. The node device APIs also now list and provide XML descriptions for vDPA devices. +* **Improvements** + + * qemu: Make 'cbitpos' & 'reducedPhysBits' attrs optional + + Libvirt probes the underlying platform in order to fill in these SEV + attributes automatically before launching a guest. + * **Bug fixes** * hyperv: ensure WQL queries work in all locales -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index b17d6f58ec..68e89e0fc8 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1199,6 +1199,11 @@ v6.9.0 (2020-11-02) Libvirt probes the underlying platform in order to fill in these SEV attributes automatically before launching a guest. + * util: support device stats collection for SR-IOV VF hostdev + + For SR-IOV VF hostdev, now libvirt supports to retrieve device traffic + stats via the API ``virDomainInterfaceStats`` or ``virsh domifstat``. + * **Bug fixes** * hyperv: ensure WQL queries work in all locales -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 68e89e0fc8..115114789d 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1192,6 +1192,10 @@ v6.9.0 (2020-11-02) using ``<interface type='vdpa'>``. The node device APIs also now list and provide XML descriptions for vDPA devices. + * cpu_map: Add EPYC-Rome cpu model + + The EPYC-Rome is supported in QEMU since ``v5.0.0``. + * **Improvements** * qemu: Make 'cbitpos' & 'reducedPhysBits' attrs optional -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 115114789d..1d6447a324 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1196,6 +1196,14 @@ v6.9.0 (2020-11-02) The EPYC-Rome is supported in QEMU since ``v5.0.0``. + * cpu: Add a flag for XML validation in cpu comparison + + For the APIs ``virConnectCompareCPU`` and + ``virConnectCompareHypervisorCPU``, the flag + ``VIR_CONNECT_COMPARE_CPU_VALIDATE_XML`` is added for XML validation. As for + virsh, use the option ``--validate`` for sub-commmand ``cpu-compare`` or + ``hypervisor-cpu-compare``. + * **Improvements** * qemu: Make 'cbitpos' & 'reducedPhysBits' attrs optional -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 1d6447a324..9be6888277 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1216,6 +1216,10 @@ v6.9.0 (2020-11-02) For SR-IOV VF hostdev, now libvirt supports to retrieve device traffic stats via the API ``virDomainInterfaceStats`` or ``virsh domifstat``. + * logging: allow max_len=0 to disable log rollover + + Set ``max_len=0`` in ``virtlogd.conf`` to disable log rollover. + * **Bug fixes** * hyperv: ensure WQL queries work in all locales -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 9be6888277..a474a25cba 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1220,6 +1220,12 @@ v6.9.0 (2020-11-02) Set ``max_len=0`` in ``virtlogd.conf`` to disable log rollover. + * qemu: Set noqueue qdisc for TAP devices + + Set noqueue instead of the former pfifo_fast queue to TAP devices. It will + avoid needless cost of host CPU cycles and improve the performance of the + TAP devices. + * **Bug fixes** * hyperv: ensure WQL queries work in all locales -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index a474a25cba..e00e4e173d 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1204,6 +1204,13 @@ v6.9.0 (2020-11-02) virsh, use the option ``--validate`` for sub-commmand ``cpu-compare`` or ``hypervisor-cpu-compare``. + * qemu: Introduce virtio free page reporting feature + + Introduce the optional attribute ``free-page-reporting`` for virtio + memballoon device. It enables/disables the ability of the QEMU virtio + memory balloon to return unused pages back to the hypervisor. It is + supported since ``QEMU 5.1``. + * **Improvements** * qemu: Make 'cbitpos' & 'reducedPhysBits' attrs optional -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index e00e4e173d..879e2d5f61 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1233,6 +1233,11 @@ v6.9.0 (2020-11-02) avoid needless cost of host CPU cycles and improve the performance of the TAP devices. + * qemu: virtiofs can be used without NUMA nodes + + Virtiofs is supported for the VM without NUMA nodes but configured with + shared memory. + * **Bug fixes** * hyperv: ensure WQL queries work in all locales -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 879e2d5f61..92cb7ea1de 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1124,6 +1124,13 @@ v6.10.0 (2020-12-01) ``virDomainSetVcpus()``, and ``virDomainSetVcpusFlags()`` APIs have been implemented in the Hyper-V driver. + * qemu: Add 'fmode' and 'dmode' options for 9pfs + + Expose QEMU's 9pfs 'fmode' and 'dmode' options via attributes on the + 'filesystem' node in the domain XML. These options control the creation + mode of files and directories, respectively, when using accessmode=mapped. + It requires QEMU 2.10 or above. + * **Improvements** * virsh: Support network disks in ``virsh attach-disk`` -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 92cb7ea1de..3a19ac1d43 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1106,6 +1106,12 @@ v6.10.0 (2020-12-01) option is missing are now '1'. This ensures that only legitimate clients access servers, which don't have any additional form of authentication. + * qemu: Introduce "migrate_tls_force" to qemu.conf + + The ``migrate_tls_force`` configuration option allows administrators to + always force migration connections to be TLS secured as if + ``VIR_MIGRATE_TLS`` flag was used. + * **New features** * qemu: Implement OpenSSH authorized key file management APIs -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 3a19ac1d43..008601c0f5 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1137,6 +1137,11 @@ v6.10.0 (2020-12-01) mode of files and directories, respectively, when using accessmode=mapped. It requires QEMU 2.10 or above. + * qemu: support kvm-poll-control performance hint + + Implement the new KVM feature 'poll-control' to set this performance hint + for KVM guests. It requires QEMU 4.2 or above. + * **Improvements** * virsh: Support network disks in ``virsh attach-disk`` -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 008601c0f5..f27e8bb22d 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1016,6 +1016,10 @@ v7.0.0 (2021-01-15) powered off or undefined. Add per-TPM emulator option ``persistent_state`` for keeping TPM state. + * cpu_map: Add Snowridge cpu model + + The cpu model Snowridge is supported since QEMU 4.1. + * **Improvements** * qemu: Discourage users from polling ``virDomainGetBlockJobInfo`` for block -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index f27e8bb22d..34934b42f3 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1020,6 +1020,10 @@ v7.0.0 (2021-01-15) The cpu model Snowridge is supported since QEMU 4.1. + * qemu: Add support for NFS disk protocol + + Implement support for the 'nfs' native protocol driver in the qemu driver. + * **Improvements** * qemu: Discourage users from polling ``virDomainGetBlockJobInfo`` for block -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 34934b42f3..aa0eaa7d9a 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -541,6 +541,8 @@ v7.7.0 (2021-09-01) forbidden for older qemus which don't support the update API as the guest could still reboot and execute some instructions until it was terminated. + * virsh: Support vhostuser in attach-interface + * **Bug fixes** * qemu: Open chardev logfile on behalf of QEMU -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index aa0eaa7d9a..f8c4b5d3f8 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -470,6 +470,9 @@ v7.8.0 (2021-10-01) active. This information can also be retrieved with the new virsh command ``nodedev-info``. + * qemu: Add attribute ``queue_size`` to set the queue size of virtio-blk + + Implement the queue-size from QEMU to adjust the virtio disk queue size. v7.7.0 (2021-09-01) =================== -- 2.36.0

Signed-off-by: Han Han <hhan@redhat.com> --- NEWS.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index f8c4b5d3f8..5bc1eda149 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -474,6 +474,18 @@ v7.8.0 (2021-10-01) Implement the queue-size from QEMU to adjust the virtio disk queue size. +* **Improvements** + + * api: Add XML validation for creating of: networkport, nwfilter-binding, + network + + * Add flag ``VIR_NETWORK_PORT_CREATE_VALIDATE`` to validate network port + input xml of network-port creating. + * Add flag ``VIR_NETWORK_CREATE_VALIDATE`` to validate network input xml of + network creating. + * Add flag ``VIR_NWFILTER_BINDING_CREATE_VALIDATE`` to validate + nwfilter-binding input xml of nwfilter-binding creating. + v7.7.0 (2021-09-01) =================== -- 2.36.0

On Wed, May 11, 2022 at 10:16:58AM +0800, Han Han wrote:
Han Han (16): news: make SEV attrs 'cbitpos' & 'reducedPhysBits' optional news: support device stats collection for SR-IOV VF hostdev news: cpu_map: Add EPYC-Rome cpu model news: cpu: Support for XML validation in cpu comparison news: logging: allow max_len=0 to disable log rollover news: qemu: Set noqueue qdisc for TAP devices news: qemu: Introduce virtio free page reporting feature news: qemu: virtiofs can be used without NUMA nodes news: qemu: Add 'fmode' and 'dmode' options for 9pfs news: Introduce "migrate_tls_force" to qemu.conf news: qemu: support kvm-poll-control performance hint news: cpu_map: Add Snowridge cpu model news: qemu: Add support for NFS disk protocol news: Support vhostuser in virsh attach-interface since v7.7.0 news: Add queue_size option to virtio disk news: Validation flags for creating net, nwfilter-binding, net port
NEWS.rst | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+)
Series Reviewed-by: Andrea Bolognani <abologna@redhat.com> and pushed with some tweaks. Thanks! If you enjoy making this kind of contributions to libvirt, the very best time for them would be during the freeze period right before each release. But no pressure :) -- Andrea Bolognani / Red Hat / Virtualization

On Thu, May 19, 2022 at 2:01 AM Andrea Bolognani <abologna@redhat.com> wrote:
On Wed, May 11, 2022 at 10:16:58AM +0800, Han Han wrote:
Han Han (16): news: make SEV attrs 'cbitpos' & 'reducedPhysBits' optional news: support device stats collection for SR-IOV VF hostdev news: cpu_map: Add EPYC-Rome cpu model news: cpu: Support for XML validation in cpu comparison news: logging: allow max_len=0 to disable log rollover news: qemu: Set noqueue qdisc for TAP devices news: qemu: Introduce virtio free page reporting feature news: qemu: virtiofs can be used without NUMA nodes news: qemu: Add 'fmode' and 'dmode' options for 9pfs news: Introduce "migrate_tls_force" to qemu.conf news: qemu: support kvm-poll-control performance hint news: cpu_map: Add Snowridge cpu model news: qemu: Add support for NFS disk protocol news: Support vhostuser in virsh attach-interface since v7.7.0 news: Add queue_size option to virtio disk news: Validation flags for creating net, nwfilter-binding, net port
NEWS.rst | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+)
Series
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
and pushed with some tweaks. Thanks!
If you enjoy making this kind of contributions to libvirt, the very best time for them would be during the freeze period right before each release. But no pressure :)
Thanks for your advice :)
-- Andrea Bolognani / Red Hat / Virtualization
participants (2)
-
Andrea Bolognani
-
Han Han