[libvirt] [v5 1/9] Resctrl: Add some utils functions

2017-02-12 Thread Eli Qiao
This patch adds some utils struct and functions to expose resctrl information. virResCtrlAvailable: If resctrl interface exist on host virResCtrlGet: get specify type resource contral information virResCtrlInit: initialize resctrl struct from the host's sys fs. resctrlall[]: an array to maintain r

[libvirt] [v5 6/9] Resctrl: enable l3code/l3data

2017-02-12 Thread Eli Qiao
Enable l3code/l3data while doing cache tune. l3code/l3data should use a continus cbm in their seperated schemata and the cache size are shared between them, so we need to deal them differently with l3 cache. This should enable cdp feature while mounting /sys/fs/resctrl, eg: mount -t resctrl resct

[libvirt] [v5 5/9] Qemu: Set cache banks

2017-02-12 Thread Eli Qiao
Set cache banks while booting a new domain. Signed-off-by: Eli Qiao --- src/qemu/qemu_driver.c | 6 -- src/qemu/qemu_process.c | 53 + 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driv

[libvirt] [v5 0/9] Support cache tune in libvirt

2017-02-12 Thread Eli Qiao
Addressed comment from v4 -> v5: Marcelo: * Several typos * Use flock instead of virFileLock Addressed comment from v3 -> v4: Daniel & Marcelo: * Added concurrence support Addressed comment from v2 -> v3: Daniel: * Fixed coding style, passed `make check` and `make sy

[libvirt] [v5 9/9] Resctrl: concurrence support

2017-02-12 Thread Eli Qiao
The internal struct list domainall is a list which are resctral domain status shared by all VMs, especiall the default domain, each VM should access it concomitantly. Ues a mutex to control it. Each bank's cache_left field is also a global shared resource we need to be care, add a mutex for each b

[libvirt] [v5 7/9] Resctrl: Make sure l3data/l3code are pairs

2017-02-12 Thread Eli Qiao
l3data and l3code type of cache banks should be configured pairs. Signed-off-by: Eli Qiao --- src/conf/domain_conf.c | 19 +++ src/util/virresctrl.c | 1 - src/util/virresctrl.h | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b/sr

[libvirt] [v5 2/9] Resctrl: expose cache information to capabilities

2017-02-12 Thread Eli Qiao
This patch expose cache information to host's capabilites xml. For l3 cache allocation For l3 cache allocation supported cdp(seperate data/code): RFC on mailing list. https://www.redhat.com/archives/libvir-list/2017-January/msg00644.html

[libvirt] [v5 8/9] Resctrl: Compatible mode for cdp enabled

2017-02-12 Thread Eli Qiao
This patch support l3 cache allocation compatible mode if cdp enabled on host. In this case l3code/l3data has same schemata. Signed-off-by: Eli Qiao --- src/conf/domain_conf.c | 15 +-- src/util/virresctrl.c | 10 ++ 2 files changed, 23 insertions(+), 2 deletions(-) diff -

[libvirt] [v5 4/9] Resctrl: Add private interface to set cachebanks

2017-02-12 Thread Eli Qiao
virResCtrlSetCacheBanks: Set cache banks of a libvirt domain. It will create new resource domain under `/sys/fs/resctrl` and fill the schemata according the cache banks configration. virResCtrlUpdate: Update the schemata after libvirt domain destroy. Signed-off-by: Eli Qiao --- src/libvirt_priv

[libvirt] [v5 3/9] Resctrl: Add new xml element to support cache tune

2017-02-12 Thread Eli Qiao
This patch adds new xml element to support cache tune as: ... ... id: any non-minus number host_id: reference of the host's cache banks id, it's from capabilities type: cache bank type size: should be multiples of the min_size of the bank on host. vcpus: cache allocation on vcpu set, if

Re: [libvirt] [v4 0/9] Support cache tune in libvirt

2017-02-12 Thread Eli Qiao
-- Eli Qiao Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Friday, 10 February 2017 at 10:19 PM, Marcelo Tosatti wrote: > On Fri, Feb 10, 2017 at 02:42:04PM +0800, Eli Qiao wrote: > > Addressed comment from v3 -> v4: > > > > Daniel & Marcelo: > > * Added concurrence support > >

Re: [libvirt] [PATCH 7/9] perf: add page_faults_maj software perf event support

2017-02-12 Thread Nitesh Konkar
On Fri, Feb 10, 2017 at 3:22 AM, John Ferlan wrote: > > > On 01/27/2017 06:01 AM, Nitesh Konkar wrote: > > This patch adds support and documentation > > for the page_faults_maj perf event. > > > > Signed-off-by: Nitesh Konkar > > --- > > docs/formatdomain.html.in | 7 +++

Re: [libvirt] [PATCH] libxl: implement virDomainObjCheckIsActive

2017-02-12 Thread Sagar Ghuge
Hi Jim, Thank you for replying. I am planning to participate in GSoC'17 and this is my first patch towards it. This is from Byte sized task which I picked up and trying to solve it. Yes you are right, pattern is used throughout the libxl driver and many others but this is just a rudimentary patch

Re: [libvirt] [PATCH] libxl: implement virDomainObjCheckIsActive

2017-02-12 Thread Jim Fehlig
On 02/11/2017 01:31 AM, Sagar Ghuge wrote: Add function which raises error if domain is not active Signed-off-by: Sagar Ghuge --- src/conf/domain_conf.c | 13 + src/conf/domain_conf.h | 1 + src/libxl/libxl_driver.c | 4 +--- 3 files changed, 15 insertions(+), 3 deletions(-)

Re: [libvirt] [PATCH] qemu_capabilities: introduce QEMU_CAPS_SD_CARD to probe sd-card drivers

2017-02-12 Thread Chen Hanxiao
At 2017-02-07 16:31:20, "Chen Hanxiao" wrote: >From: Chen Hanxiao > >This patch introduces QEMU_CAPS_SD_CARD for probing >whether qemu support SD card by: > >{"execute": "device-list-properties", >"arguments":{"typename":"sd-card"}} > >It will be helpful for apps which used >cmd 'virsh domc

[libvirt] 1GB huge pages and incompatible VM memory size

2017-02-12 Thread Jim Fehlig
Hi All, Matt encountered the following issue when using 1GB huge pages with libvirt This problem turned out to be entirely my fault because I didn't round the VM's memory size to a 1G multiple, and the kernel tried to split the VMA at the end of the region, triggering this code in the kernel do

Re: [libvirt] [PATCH] docs: document bhyve e1000 support

2017-02-12 Thread Roman Bogorodskiy
Roman Bogorodskiy wrote: > * Add bhyve e1000 support entry to release nodes ^ Oops, should be 'notes'. > * Update the bhyve driver page with usage sample > --- > docs/drvbhyve.html.in | 15 +++ > docs/news.xml | 9 +++

[libvirt] [PATCH] docs: document bhyve e1000 support

2017-02-12 Thread Roman Bogorodskiy
* Add bhyve e1000 support entry to release nodes * Update the bhyve driver page with usage sample --- docs/drvbhyve.html.in | 15 +++ docs/news.xml | 9 + 2 files changed, 24 insertions(+) diff --git a/docs/drvbhyve.html.in b/docs/drvbhyve.html.in index 9b7872ba0..d

[libvirt] [PATCH 4/6] bhyve: enumerate UEFI firmwares

2017-02-12 Thread Roman Bogorodskiy
From: Fabian Freyer Signed-off-by: Roman Bogorodskiy --- src/bhyve/bhyve_capabilities.c | 28 1 file changed, 28 insertions(+) diff --git a/src/bhyve/bhyve_capabilities.c b/src/bhyve/bhyve_capabilities.c index 13b4835a8..9dec66b11 100644 --- a/src/bhyve/bhyve_capab

[libvirt] [PATCH 3/6] bhyve: test cases for UEFI bhyvexml2argvtest

2017-02-12 Thread Roman Bogorodskiy
From: Fabian Freyer Signed-off-by: Roman Bogorodskiy --- tests/bhyvexml2argvdata/bhyvexml2argv-uefi.args | 11 +++ tests/bhyvexml2argvdata/bhyvexml2argv-uefi.ldargs | 1 + tests/bhyvexml2argvdata/bhyvexml2argv-uefi.xml| 23 +++ tests/bhyvexml2argvtest.c

[libvirt] [PATCH 6/6] bhyve: test cases for VNC

2017-02-12 Thread Roman Bogorodskiy
Signed-off-by: Roman Bogorodskiy --- tests/bhyvexml2argvdata/bhyvexml2argv-vnc.args | 12 +++ tests/bhyvexml2argvdata/bhyvexml2argv-vnc.ldargs | 1 + tests/bhyvexml2argvdata/bhyvexml2argv-vnc.xml| 26 tests/bhyvexml2argvtest.c| 7 ++

[libvirt] [PATCH 5/6] bhyve: add video support

2017-02-12 Thread Roman Bogorodskiy
From: Fabian Freyer bhyve supports 'gop' video device that allows clients to connect to VMs using VNC clients. This commit adds support for that to the bhyve driver: - Introducr 'gop' video device type - Add capabilities probing for the 'fbuf' device that's responsible for graphics - Updat

[libvirt] [PATCH 0/6] bhyve UEFI and graphics support

2017-02-12 Thread Roman Bogorodskiy
Fabian Freyer (5): bhyve: virBhyveProbeCaps: BHYVE_CAP_LPC_BOOTROM bhyve: add support for booting from UEFI bhyve: test cases for UEFI bhyvexml2argvtest bhyve: enumerate UEFI firmwares bhyve: add video support Roman Bogorodskiy (1): bhyve: test cases for VNC docs/formatdomain.html.in

[libvirt] [PATCH 2/6] bhyve: add support for booting from UEFI

2017-02-12 Thread Roman Bogorodskiy
From: Fabian Freyer Allow to boot using UEFI rather than using an external boot loader such as bhyveload or grub-bhyve. Also, make LPC PCI-ISA bridge handling more flexible as now it's needed not only for serial ports, but for bootrom as well. Signed-off-by: Roman Bogorodskiy --- src/bhyve/bh

[libvirt] [PATCH 1/6] bhyve: virBhyveProbeCaps: BHYVE_CAP_LPC_BOOTROM

2017-02-12 Thread Roman Bogorodskiy
From: Fabian Freyer Implement the BHACE_CAP_LPC_BOOTROM capability by checking the stderr output of 'bhyve -l bootrom'. If the bootrom option is unsupported, this will contain the following output: bhyve: invalid lpc device configuration 'bootrom' On newer bhyve versions that do support spe