Re: [libvirt] RFC: Creating mediated devices with libvirt

2017-06-22 Thread Martin Polednik
On 22/06/17 14:05 +0200, Erik Skultety wrote: On Thu, Jun 22, 2017 at 10:41:13AM +0200, Martin Polednik wrote: On 16/06/17 18:14 +0100, Daniel P. Berrange wrote: > On Fri, Jun 16, 2017 at 06:11:17PM +0100, Daniel P. Berrange wrote: > > On Fri, Jun 16, 2017 at 11:02:55AM -0600, Alex W

Re: [libvirt] RFC: Creating mediated devices with libvirt

2017-06-22 Thread Martin Polednik
On 16/06/17 18:14 +0100, Daniel P. Berrange wrote: On Fri, Jun 16, 2017 at 06:11:17PM +0100, Daniel P. Berrange wrote: On Fri, Jun 16, 2017 at 11:02:55AM -0600, Alex Williamson wrote: > On Fri, 16 Jun 2017 11:32:04 -0400 > Laine Stump wrote: > > > On 06/15/2017 02:42 PM, Alex

Re: [libvirt] Add mdev reporting capability to the nodedev driver

2017-04-18 Thread Martin Polednik
On 12/04/17 16:19 -0600, Alex Williamson wrote: On Wed, 5 Apr 2017 09:21:17 +0100 "Daniel P. Berrange" wrote: On Wed, Apr 05, 2017 at 08:12:31AM +0200, Erik Skultety wrote: > On Tue, Apr 04, 2017 at 04:23:18PM +0100, Daniel P. Berrange wrote: > > On Wed, Mar 29, 2017 at

Re: [libvirt] docs: Document the new hostdev and address type 'mdev'

2017-02-27 Thread Martin Polednik
On 20/02/17 15:28 +0100, Erik Skultety wrote: Signed-off-by: Erik Skultety --- docs/formatdomain.html.in | 48 +++ 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in

Re: [libvirt] Introduce vGPU mdev framework to libvirt

2017-02-15 Thread Martin Polednik
On 14/02/17 09:58 -0700, Alex Williamson wrote: On Tue, 14 Feb 2017 16:50:14 +0100 Martin Polednik <mpoled...@redhat.com> wrote: On 07/02/17 12:29 -0700, Alex Williamson wrote: >On Tue, 7 Feb 2017 17:26:51 +0100 >Erik Skultety <eskul...@redhat.com> wrote: > >> On

Re: [libvirt] Introduce vGPU mdev framework to libvirt

2017-02-14 Thread Martin Polednik
On 07/02/17 12:29 -0700, Alex Williamson wrote: On Tue, 7 Feb 2017 17:26:51 +0100 Erik Skultety wrote: On Mon, Feb 06, 2017 at 09:33:14AM -0700, Alex Williamson wrote: > On Mon, 6 Feb 2017 13:19:42 +0100 > Erik Skultety wrote: > > > Finally. It's

[libvirt] [PATCH v2 3/5] virDomainFormatSchedDef: factor out subset code

2016-11-21 Thread Martin Polednik
The code within the function is too specific for priority attribute of RT schedulers. To allow addition of schedulers that group by different properties, we factor out the logic to calculate cpu subset. Instead of comparing by priority, the new code accepts comparator for the 2 sched structs. ---

[libvirt] [PATCH v2 4/5] virDomainFormatSchedDef: rename prioMap and nextprio

2016-11-21 Thread Martin Polednik
Since the code is now generalized beyond just vcpusched priority, it's better to rename the variables that indicated direct relationship with priority: prioMap and nextprio. --- src/conf/domain_conf.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[libvirt] [PATCH v2 2/5] util: allow virProcessSetScheduler to set SCHED_DEADLINE

2016-11-21 Thread Martin Polednik
As sched_deadline is linux specific, it is not set through sched_setscheduler but rather the sched_setattr syscall. Additionally, the scheduler has new set of parameters: runtime, deadline and period. In this part of the series, we extend virProcessSetScheduler to accommodate the additional

[libvirt] [PATCH v2 5/5] conf: add deadline scheduler

2016-11-21 Thread Martin Polednik
As the code for changing task scheduler is now able to choose deadline scheduler, we can update domain configuration to parse the scheduler. --- docs/formatdomain.html.in | 15 +++--- docs/schemas/domaincommon.rng | 16 +++ src/conf/domain_conf.c| 108

[libvirt] [PATCH v2 0/5] Add deadline scheduler

2016-11-21 Thread Martin Polednik
renaming and refactoring in virDomainFormatSchedDef * squashed conf additions * moved error handling to *PostParse Martin Polednik (5): conf: add entries for deadline scheduler util: allow virProcessSetScheduler to set SCHED_DEADLINE virDomainFormatSchedDef: factor out subset code

[libvirt] [PATCH v2 1/5] conf: add entries for deadline scheduler

2016-11-21 Thread Martin Polednik
Deadline scheduler, or SCHED_DEADLINE, is a new realtime scheduler added to Linux 3.14. In order to support it as a possible value in vcpusched/iothreadsched, we have to add it to scheduler related structures. --- src/conf/domain_conf.c | 1 + src/conf/domain_conf.h | 3 +++

Re: [libvirt] util: allow virProcessSetScheduler to set SCHED_DEADLINE

2016-11-15 Thread Martin Polednik
On 15/11/16 15:02 +, Daniel P. Berrange wrote: On Tue, Nov 15, 2016 at 03:51:22PM +0100, Martin Polednik wrote: On 10/11/16 16:21 +0100, Martin Kletzander wrote: > On Mon, Nov 07, 2016 at 10:01:13AM +0100, Martin Polednik wrote: > > As sched_deadline is linux specific, it is not se

Re: [libvirt] util: allow virProcessSetScheduler to set SCHED_DEADLINE

2016-11-15 Thread Martin Polednik
On 10/11/16 16:21 +0100, Martin Kletzander wrote: On Mon, Nov 07, 2016 at 10:01:13AM +0100, Martin Polednik wrote: As sched_deadline is linux specific, it is not set through sched_setscheduler but rather the sched_setattr syscall. Additionally, the scheduler has new set of parameters: runtime

[libvirt] [PATCH 3/6] virDomainFormatSchedDef: factor out subset code

2016-11-07 Thread Martin Polednik
The code within the function is too specific for priority attribute of RT schedulers. To allow addition of schedulers that group by different properties, we factor out the logic to calculate cpu subset. Instead of comparing by priority, the new code accepts comparator for the 2 sched structs. ---

[libvirt] [PATCH 5/6] schema: add deadline scheduler

2016-11-07 Thread Martin Polednik
Can be used in the same way as other schedulers, only requiring additional parameters. --- docs/schemas/domaincommon.rng | 16 1 file changed, 16 insertions(+) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 19d45fd..1461d34 100644 ---

[libvirt] [PATCH 4/6] conf: add deadline scheduler

2016-11-07 Thread Martin Polednik
As the code for changing task scheduler is now able to choose deadline scheduler, we can update domain configuration to parse the scheduler. The subset of vcpus or iothreads where the scheduler is configured can be calculated by simply adding comparator based on SCHED_DEADLINE attributes

[libvirt] [PATCH 6/6] docs: mention deadline scheduler in vcpusched

2016-11-07 Thread Martin Polednik
--- docs/formatdomain.html.in | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 11b3330..1442190 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -799,12 +799,12 @@

[libvirt] [PATCH 0/6] Add deadline scheduler

2016-11-07 Thread Martin Polednik
/iothreadsched called 'deadline' that activates SCHED_DEADLINE for given process. As the scheduler is linux specific, extra implementation was required - it is not possible to use sched_setscheduler, sched_setattr syscall must be used. Martin Polednik (6): conf: add entries for deadline scheduler

[libvirt] [PATCH 1/6] conf: add entries for deadline scheduler

2016-11-07 Thread Martin Polednik
Deadline scheduler, or SCHED_DEADLINE, is a new realtime scheduler added to Linux 3.14. In order to support it as a possible value in vcpusched/iothreadsched, we have to add it to scheduler related structures. --- src/conf/domain_conf.c | 1 + src/conf/domain_conf.h | 3 +++

Re: [libvirt] hostdev: add support for "managed='detach'"

2016-03-18 Thread Martin Polednik
On 18/03/16 10:15 +, Daniel P. Berrange wrote: On Thu, Mar 17, 2016 at 05:37:28PM -0400, Laine Stump wrote: On 03/17/2016 02:32 PM, Daniel P. Berrange wrote: >On Thu, Mar 17, 2016 at 12:18:49PM -0600, Alex Williamson wrote: >>On Thu, 17 Mar 2016 17:59:53 + >>"Daniel P. Berrange"

[libvirt] USB hostdev de/reattaching

2015-03-19 Thread Martin Polednik
Hello, according to libvirt documentation, when using hostdev with USB device ...the user is responsible to call virNodeDeviceDettach (or virsh nodedev-detach) before starting the guest In libvirt-1.2.13-1.el7.x86_64, this leads to virsh nodedev-detach usb_usb1 error: Failed to detach