[libvirt] [PATCHv2] bhyve: domainCreateXML

2014-04-10 Thread Wojciech Macek
Implement bhyveDomainCreteXML function. --- src/bhyve/bhyve_driver.c | 67 1 file changed, 67 insertions(+) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index 7187202..4ac89c1 100644 --- a/src/bhyve/bhyve_driver.c +++

[libvirt] [PATCHv2] bhyve: domainCreateXML

2014-04-10 Thread Wojciech Macek
= Wojciech Macek (1): bhyve: domainCreateXML src/bhyve/bhyve_driver.c | 67 1 file changed, 67 insertions(+) -- 1.9.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 2/2] bhyve: domainCreateXML

2014-04-08 Thread Wojciech Macek
pair instead. What do you mean by ACL check? Do you think the check is unnecessary, or just should be placed earlier? W. 2014-04-08 9:01 GMT+02:00 Roman Bogorodskiy bogorods...@gmail.com: Wojciech Macek wrote: Implement bhyveDomainCreteXML function. s/Crete/Create/ src/bhyve

Re: [libvirt] [PATCH 2/2] bhyve: domainCreateXML

2014-04-08 Thread Wojciech Macek
Oh, yep. We don't need an ACL again. I will send new patchset today. Thanks, Wojtek 2014-04-08 12:09 GMT+02:00 Roman Bogorodskiy bogorods...@gmail.com: Wojciech Macek wrote: Sure, I will split it into two separate commits. I must have messed up sth in commits, since even in head-email

[libvirt] [PATCH 2/2] bhyve: domainCreateXML

2014-04-08 Thread Wojciech Macek
Implement bhyveDomainCreteXML function. --- src/bhyve/bhyve_driver.c | 70 1 file changed, 70 insertions(+) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index 23e7112..1357e07 100644 --- a/src/bhyve/bhyve_driver.c +++

[libvirt] [PATCH 0/2] bhyve: enhance domain management

2014-04-08 Thread Wojciech Macek
Two small changes: 1. Inside domainDestroy, forget about domain if it is not persistent. 2. Add domainCreateXML call Wojciech Macek (2): bhyve: fix domain management bhyve: domainCreateXML src/bhyve/bhyve_driver.c | 80 ++-- 1 file changed, 78

[libvirt] [PATCH 1/2] bhyve: fix domain management

2014-04-08 Thread Wojciech Macek
When domain is not persistent, it should be forgotten upon destroying. --- src/bhyve/bhyve_driver.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index 7187202..23e7112 100644 --- a/src/bhyve/bhyve_driver.c +++

[libvirt] [PATCH 0/2] byve: domain management

2014-04-07 Thread Wojciech Macek
: when domain is not persistent, it should be forgotten upon domainDestroy. Wojciech Macek (2): bhyve: stub for domainResume bhyve: domainCreateXML src/bhyve/bhyve_driver.c | 115 ++- 1 file changed, 114 insertions(+), 1 deletion(-) -- 1.9.0

[libvirt] [PATCH 1/2] bhyve: stub for domainResume

2014-04-07 Thread Wojciech Macek
bhyve does not support suspend nor resume. To enable OpenStack procedure (create - resume) use stub for domainResume function. If domain is running then report success; return failure in all other cases. --- src/bhyve/bhyve_driver.c | 34 ++ 1 file changed, 34

[libvirt] [PATCH 2/2] bhyve: domainCreateXML

2014-04-07 Thread Wojciech Macek
Implement bhyveDomainCreteXML function. --- src/bhyve/bhyve_driver.c | 81 +++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index f7a8912..2ea2d22 100644 ---

Re: [libvirt] [PATCHv2 2/3] bhyve: create capabilities submodule

2014-04-07 Thread Wojciech Macek
Oh, sorry. I will definitely run this check with all further patches. Thanks for pushing! Wojtek 2014-04-07 15:42 GMT+02:00 Michal Privoznik mpriv...@redhat.com: On 07.04.2014 07:06, Wojciech Macek wrote: - Move all capabilities functions to separate file - Add initCPU --- src

[libvirt] [PATCHv2 2/3] bhyve: create capabilities submodule

2014-04-06 Thread Wojciech Macek
- Move all capabilities functions to separate file - Add initCPU --- src/Makefile.am| 2 + src/bhyve/bhyve_capabilities.c | 105 + src/bhyve/bhyve_capabilities.h | 30 src/bhyve/bhyve_driver.c | 56

[libvirt] [PATCHv2 1/3] bhyve: support for connectBaselineCPU

2014-04-06 Thread Wojciech Macek
Implement bhyveConnectBaselineCPU to support OpenStack/Nova --- src/bhyve/bhyve_driver.c | 20 1 file changed, 20 insertions(+) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index 461a070..f70eff5 100644 --- a/src/bhyve/bhyve_driver.c +++

[libvirt] [PATCHv2 0/3] bhyve: capabilities and CPU-capabilities support

2014-04-06 Thread Wojciech Macek
Rebased onto master Add following changes: - support for connectBaselineCPU (required by OpenStack) - move capabilites functions to separate file + API change - implement connectCompareCPU Wojciech Macek (3): bhyve: support for connectBaselineCPU bhyve: create capabilities submodule bhyve

[libvirt] [PATCHv2 3/3] bhyve: connectCompareCPU support

2014-04-06 Thread Wojciech Macek
Implement support for connectCompareCPU. --- src/bhyve/bhyve_driver.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index 728ab2b..34ca924 100644 --- a/src/bhyve/bhyve_driver.c +++

Re: [libvirt] [PATCH 2/3] bhyve: create capabilities submodule

2014-04-02 Thread Wojciech Macek
; if (!(bhyve_driver-xmlopt = virDomainXMLOptionNew(NULL, NULL, NULL))) 2014-03-31 12:54 GMT+02:00 Wojciech Macek w...@semihalf.com: - Move all capabilities functions to separate file - Add initCPU --- src/Makefile.am| 2 + src/bhyve/bhyve_capabilities.c | 105

[libvirt] [PATCH 2/3] bhyve: create capabilities submodule

2014-03-31 Thread Wojciech Macek
100644 index 000..b8a9db4 --- /dev/null +++ b/src/bhyve/bhyve_capabilities.c @@ -0,0 +1,105 @@ +/* + * bhyve_capabilities.c: bhyve capabilities module + * + * Copyright (C) 2014 Wojciech Macek w...@semihalf.com + * + * This library is free software; you can redistribute it and/or + * modify

[libvirt] [PATCH 3/3] bhyve: connectCompareCPU support

2014-03-31 Thread Wojciech Macek
Implement support for connectCompareCPU. --- src/bhyve/bhyve_driver.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index ef9192a..f6973af 100644 --- a/src/bhyve/bhyve_driver.c +++

[libvirt] [PATCH 0/3] bhyve: capabilities and CPU-capabilities support

2014-03-31 Thread Wojciech Macek
Add following changes: - support for connectBaselineCPU (required by OpenStack) - move capabilites functions to separate file + API change - implement connectCompareCPU Wojciech Macek (3): bhyve: support for connectBaselineCPU bhyve: create capabilities submodule bhyve: connectCompareCPU

[libvirt] [PATCH 1/3] bhyve: support for connectBaselineCPU

2014-03-31 Thread Wojciech Macek
Implement bhyveConnectBaselineCPU to support OpenStack/Nova --- src/bhyve/bhyve_driver.c | 20 1 file changed, 20 insertions(+) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index 7a12d69..3321a79 100644 --- a/src/bhyve/bhyve_driver.c +++

[libvirt] [PATCH] bhyve: add domainLookupByID

2014-03-27 Thread Wojciech Macek
Implement domainLookupByID as required by OpenStack stuff. Wojciech Macek (1): bhyve: add domainLookupByID src/bhyve/bhyve_driver.c | 29 + 1 file changed, 29 insertions(+) -- 1.9.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com

[libvirt] [PATCH] bhyve: add domainLookupByID

2014-03-27 Thread Wojciech Macek
Implement domain lookup by its ID. --- src/bhyve/bhyve_driver.c | 29 + 1 file changed, 29 insertions(+) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index f54dff0..38a7f41 100644 --- a/src/bhyve/bhyve_driver.c +++ b/src/bhyve/bhyve_driver.c @@

Re: [libvirt] [PATCH 1/4] pie: add Position-Independent-Executable flag

2014-03-25 Thread Wojciech Macek
returned 1 exit status configure:61052: $? = 1 Do you think it would be reasonable to add -pie to configure script? Regards, Wojtek 2014-03-20 15:51 GMT+01:00 Daniel P. Berrange berra...@redhat.com: On Thu, Mar 20, 2014 at 09:39:20AM +0100, Wojciech Macek wrote: Add possibility to choose whether

[libvirt] [PATCH 0/4] bhyve integration: pie, blk, MAC, host API

2014-03-20 Thread Wojciech Macek
MAC: add MAC address configuration for bhyve virtio network adapter 3. bhyve blk: add support for up to 8 blk devices, atapi/sata/virtio bus with file/block backend 4. bhyve host API: initial support for host functions on FreeBSD Regards, Wojtek Wojciech Macek (4): pie: add Position-Independent

[libvirt] [PATCH 3/4] bhyve: multiple virtio-blk devices support

2014-03-20 Thread Wojciech Macek
Add support for multiple virtio-blk devices. Current implementation offers room for up to 8 disks and enumerates them as functions on PCI bus: 2:0, 2:1 ... 2:7 Bootable disk must be present on the first place in XML file. --- src/bhyve/bhyve_command.c | 86

[libvirt] [PATCH 4/4] bhyve: host API support

2014-03-20 Thread Wojciech Macek
New functionalities: - connectGetMaxVcpus - on bhyve hardcode this value to 16 - nodeGetFreeMemory - do not use physmem_get on FreeBSD, since it might get wrong value on systems with more than 100GB of RAM - nodeGetCPUMap - wrapper only for mapping

[libvirt] [PATCH 1/4] pie: add Position-Independent-Executable flag

2014-03-20 Thread Wojciech Macek
Add possibility to choose whether the code is compiled with PIE or without. New configuration flags: --enable-pie (default) --disable-pie --- configure.ac | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 62b74c5..96a7038 100644

[libvirt] [PATCH 2/4] bhyve: MAC address configuration

2014-03-20 Thread Wojciech Macek
Add support for MAC address configuration no network bridge interface. --- src/bhyve/bhyve_command.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c index 15029cd..42cab10 100644 --- a/src/bhyve/bhyve_command.c +++