[libvirt] [PATCH v2 2/6] virsh: Implement new table API for virsh list

2018-08-16 Thread Simon Kobyda
Instead of printing it straight in virsh, it creates table struct which is filled with header and rows(domains). It allows us to know more about table before printing to calculate alignment right. Signed-off-by: Simon Kobyda --- tests/virshtest.c| 14 ++--

[libvirt] [PATCH v2 0/6] fdaskljrew

2018-08-16 Thread Simon Kobyda
rpdwrewrewr Simon Kobyda (6): vsh: Add API for printing tables. virsh: Implement new table API for virsh list vsh: Added tests virsh: Implement vsh-table to iface-list virsh: Implement vshTable API to net-list and net-dhcp-leases virsh: Implement vshTable API to secret-list

[libvirt] [PATCH v2 1/6] vsh: Add API for printing tables.

2018-08-16 Thread Simon Kobyda
It solves problems with alignment of columns. Width of each column is calculated by its biggest cell. Should solve unicode bug. In future, it may be implemented in virsh, virt-admin... This API has 5 public functions: - vshTableNew - adds new table and defines its header - vshTableRowAppend -

[libvirt] [libvirt-glib][PATCH v2] Use new GObject define macros with private

2018-08-16 Thread Michal Privoznik
G_ADD_PRIVATE was added in 2.38 and older functions are getting deprecated: https://gitlab.gnome.org/GNOME/glib/merge_requests/7/commits This also means, that the minimal required glib version is increased to 2.38. Signed-off-by: Michal Privoznik --- diff to v1: - increased minimal glib

Re: [libvirt] Investigation and possible fix of 1361592 - apparmor profiles do not include backing files

2018-08-16 Thread Peter Krempa
On Wed, Aug 15, 2018 at 20:56:35 +0300, Povilas Kanapickas wrote: > Hi, Hi, > > I've looked into why apparmor profiles do not contain exceptions for > backing files of images which later leads to permission errors due to > apparmor containment. As of newest libvirt git master, only the first >

Re: [libvirt] [PATCH 3/4] qemu: Fix probing of AMD SEV support

2018-08-16 Thread Erik Skultety
On Wed, Aug 15, 2018 at 06:06:26PM +0200, Peter Krempa wrote: > On Wed, Aug 15, 2018 at 17:02:07 +0200, Erik Skultety wrote: > > So the procedure to detect SEV support works like this: > > 1) we detect that sev-guest is among the QOM types and set the cap flag > > 2) we probe the monitor for SEV

Re: [libvirt] [PATCH 4/4] qemu: caps: Format SEV platform data into qemuCaps cache

2018-08-16 Thread Erik Skultety
On Wed, Aug 15, 2018 at 06:23:28PM +0200, Peter Krempa wrote: > On Wed, Aug 15, 2018 at 17:02:08 +0200, Erik Skultety wrote: > > Since we're not saving the platform-specific data into a cache, we're > > not going to populate the structure, which in turn will cause a crash > > upon calling

<    1   2