Re: [PATCH 0/2] Add support for IOMMU address width

2020-06-22 Thread Menno Lageman
On 04-06-2020 09:42, Menno Lageman wrote: Since commit 37f51384ae05 ('intel-iommu: Extend address width to 48 bits') QEMU supports setting the address width of the IOMMU. This patch adds a new 'aw_bits' attribute to the iommu in libvirtd to configure this. Menno Lageman (2): conf: add

Re: [PATCH 2/2] qemu: format address wdith on intel-iommu command line

2020-06-16 Thread Menno Lageman
On 04-06-2020 11:43, Peter Krempa wrote: On Thu, Jun 04, 2020 at 11:34:52 +0200, Menno Lageman wrote: On 04/06/2020 10:38, Peter Krempa wrote: On Thu, Jun 04, 2020 at 09:42:43 +0200, Menno Lageman wrote: Format the address width attribute. Depending on the version of QEMU it is named 'aw-bits

Re: [PATCH 2/2] qemu: format address wdith on intel-iommu command line

2020-06-05 Thread Menno Lageman
On 04/06/2020 10:38, Peter Krempa wrote: On Thu, Jun 04, 2020 at 09:42:43 +0200, Menno Lageman wrote: Format the address width attribute. Depending on the version of QEMU it is named 'aw-bits' or 'x-aw-bits'. Signed-off-by: Menno Lageman --- src/qemu/qemu_capabilities.c

Re: [PATCH 2/2] qemu: format address wdith on intel-iommu command line

2020-06-05 Thread Menno Lageman
On 04/06/2020 11:43, Peter Krempa wrote: On Thu, Jun 04, 2020 at 11:34:52 +0200, Menno Lageman wrote: On 04/06/2020 10:38, Peter Krempa wrote: On Thu, Jun 04, 2020 at 09:42:43 +0200, Menno Lageman wrote: Format the address width attribute. Depending on the version of QEMU it is named 'aw-bits

[PATCH 2/2] qemu: format address wdith on intel-iommu command line

2020-06-04 Thread Menno Lageman
Format the address width attribute. Depending on the version of QEMU it is named 'aw-bits' or 'x-aw-bits'. Signed-off-by: Menno Lageman --- src/qemu/qemu_capabilities.c | 6 src/qemu/qemu_capabilities.h | 4 +++ src/qemu/qemu_command.c

[PATCH 1/2] conf: add address width attribute to iommu

2020-06-04 Thread Menno Lageman
Add a new aw_bits attribute to the iommu device to control the address width of the intel-iommu Signed-off-by Menno Lageman --- docs/formatdomain.html.in | 9 + docs/schemas/domaincommon.rng | 5 +++ src/conf/domain_conf.c| 21

[PATCH 0/2] Add support for IOMMU address width

2020-06-04 Thread Menno Lageman
Since commit 37f51384ae05 ('intel-iommu: Extend address width to 48 bits') QEMU supports setting the address width of the IOMMU. This patch adds a new 'aw_bits' attribute to the iommu in libvirtd to configure this. Menno Lageman (2): conf: add address width attribute to iommu qemu: format

Re: [libvirt] [PATCH 0/3] qemu: support -overcommit cpu-pm=on|off

2020-03-27 Thread Menno Lageman
On 26-03-2020 17:04, Daniel P. Berrangé wrote: On Mon, Aug 19, 2019 at 10:32:23AM +0200, Menno Lageman wrote: QEMU introduced a CPU power management feature with commit 6f131f13e68d ("kvm: support -overcommit cpu-pm=on|off"). With this flag, kvm allows guest to control host CPU p

[libvirt] [PATCH 0/3] qemu: support -overcommit cpu-pm=on|off

2019-08-19 Thread Menno Lageman
eases idle entry/exit times for the running VCPU, so to use it QEMU needs a hint about whether host CPU is overcommitted, hence the flag name. This patch series adds a new kvm feature 'cpu-pm' for controlling "-overcommit cpu-pm=[on|off]" Menno Lageman (2

[libvirt] [PATCH 3/3] tests: add tests for cpu-pm feature

2019-08-19 Thread Menno Lageman
Update the KVM feature tests for the cpu-pm feature Signed-off-by: Menno Lageman --- tests/qemuxml2argvdata/kvm-features-off.args | 2 +- tests/qemuxml2argvdata/kvm-features-off.xml | 1 + tests/qemuxml2argvdata/kvm-features.args | 2 +- tests/qemuxml2argvdata/kvm-features.xml | 1

[libvirt] [PATCH 2/3] qemu: add hypervisor feature cpu-pm support for kvm

2019-08-19 Thread Menno Lageman
From: Wim ten Have QEMU introduced a CPU power management feature with commit 6f131f13e68d ("kvm: support -overcommit cpu-pm=on|off"). This patch series adds support for controlling QEMU's "-overcommit" command line switch: "-overcommit cpu-pm=[on|off]". By default "cpu-pm" is off. To turn the

[libvirt] [PATCH 1/3] qemu: introduce qemuBuildOvercommitCommandLine()

2019-08-19 Thread Menno Lageman
In preparation for adding support for '-overcommit cpu-pm=[on|off]', add qemuBuildOvercommitCommandLine() to generate the '-overcommit' commandline. Move the existing '-overcommit mem-lock=[on|off]' generation code from qemuBuildMemCommandline() to this function. Signed-off-by: Menno Lageman

[libvirt] [PATCH v2 2/2] tests: add tests for kvm-hint-dedicated feature

2019-08-12 Thread Menno Lageman
From: Wim ten Have Update the KVM feature tests for QEMU's kvm-hint-dedicated performance hint. Signed-off-by: Wim ten Have Signed-off-by: Menno Lageman --- tests/qemuxml2argvdata/kvm-features-off.xml | 1 + tests/qemuxml2argvdata/kvm-features.args | 4 ++-- tests/qemuxml2argvdata/kvm

[libvirt] [PATCH v2 0/2] add support for kvm-hint-dedicated performance hint

2019-08-12 Thread Menno Lageman
v2 of: https://www.redhat.com/archives/libvir-list/2019-August/msg00363.html diff to v1: - reword description in documentation - move check for valid domain config to qemuDomainDefValidate Wim ten Have (2): qemu: support for kvm-hint-dedicated performance hint tests: add tests for

[libvirt] [PATCH v2 1/2] qemu: support for kvm-hint-dedicated performance hint

2019-08-12 Thread Menno Lageman
From: Wim ten Have QEMU version 2.12.1 introduced a performance feature under commit be7773268d98 ("target-i386: add KVM_HINTS_DEDICATED performance hint") This patch adds a new KVM feature 'hint-dedicated' to set this performance hint for KVM guests. The feature is off by default. To enable

Re: [libvirt] [PATCH 1/2] qemu: support for kvm-hint-dedicated performance hint

2019-08-12 Thread Menno Lageman
On 12-08-19 13:39, Michal Privoznik wrote: On 8/12/19 1:18 PM, Menno Lageman wrote: On 12-08-19 11:23, Michal Privoznik wrote: On 8/9/19 5:19 PM, Menno Lageman wrote: From: Wim ten Have QEMU version 2.12.1 introduced a performance feature under commit be7773268d98 ("target-i386

Re: [libvirt] [PATCH 1/2] qemu: support for kvm-hint-dedicated performance hint

2019-08-12 Thread Menno Lageman
On 12-08-19 11:23, Michal Privoznik wrote: On 8/9/19 5:19 PM, Menno Lageman wrote: From: Wim ten Have QEMU version 2.12.1 introduced a performance feature under commit be7773268d98 ("target-i386: add KVM_HINTS_DEDICATED performance hint") This patch adds a new KVM feature 'hint

[libvirt] [PATCH 2/2] tests: add tests for kvm-hint-dedicated feature

2019-08-09 Thread Menno Lageman
From: Wim ten Have Update the KVM feature tests for QEMU's kvm-hint-dedicated performance hint. Signed-off-by: Wim ten Have Signed-off-by: Menno Lageman --- tests/qemuxml2argvdata/kvm-features-off.xml | 1 + tests/qemuxml2argvdata/kvm-features.args | 4 ++-- tests/qemuxml2argvdata/kvm

[libvirt] [PATCH 0/2] add support for kvm-hint-dedicated performance hint

2019-08-09 Thread Menno Lageman
QEMU version 2.12.1 introduced a performance feature under commit be7773268d98 ("target-i386: add KVM_HINTS_DEDICATED performance hint") This patch adds a new KVM feature 'hint-dedicated' to set this performance hint for KVM guests. Wim ten Have (2): qemu: support for kvm-hint-dedicated

[libvirt] [PATCH 1/2] qemu: support for kvm-hint-dedicated performance hint

2019-08-09 Thread Menno Lageman
From: Wim ten Have QEMU version 2.12.1 introduced a performance feature under commit be7773268d98 ("target-i386: add KVM_HINTS_DEDICATED performance hint") This patch adds a new KVM feature 'hint-dedicated' to set this performance hint for KVM guests. The feature is off by default. To enable