I have now pushed all these patches except the volume one and
the man page one. Eren, thank you very much for all the time
you invested in working on this feature. It is great to finally
have this ability in libvirt-sandbox !
Regards,
Daniel
On Tue, Sep 08, 2015 at 05:29:31PM +0100, Daniel P.
We have the same argument to many other commands that produce an
XML based on what user typed. But unfortunately attach-interface
was missing it. Maybe nobody had needed it yet. Well, I did
just now.
Signed-off-by: Michal Privoznik
---
Diff to v1:
- Commit message grammar
On Wed, 2015-09-09 at 21:43 +0200, Martin Kletzander wrote:
> > Andrea Bolognani (4):
> > qemu: Introduce QEMU_CAPS_DEVICE_RTL8139
> > qemu: Introduce QEMU_CAPS_DEVICE_E1000
> > qemu: Introduce QEMU_CAPS_DEVICE_VIRTIO_NET
> > qemu: Try several network devices when looking for a default
>
>
We have a new libvirt-appdev-guide-python which we need to
promote to users. Rewrite the existing page to mention it
too. Also use the new URL location which is automatically
refreshed once a day.
Signed-off-by: Daniel P. Berrange
---
docs/devguide.html.in | 56
https://bugzilla.redhat.com/show_bug.cgi?id=1124841
If running in session mode it may happen that we fail to set
correct SELinux label, but the image may still be readable to
the qemu process. Take this into account.
Signed-off-by: Michal Privoznik
---
This is a reworked version of my previous patch:
https://www.redhat.com/archives/libvir-list/2015-July/msg00576.html
Michal Privoznik (4):
virSecuritySELinuxSetSecurityAllLabel: drop useless virFileIsSharedFSType
security_selinux: Replace SELinuxSCSICallbackData with proper struct
The check is done in virSecuritySELinuxSetFilecon itself. There's
no need to check it again.
Signed-off-by: Michal Privoznik
---
src/security/security_selinux.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/security/security_selinux.c
We may want to do some decisions in drivers based on fact if we
are running as privileged user or not. Propagate this info there.
Signed-off-by: Michal Privoznik
---
src/lxc/lxc_controller.c | 2 +-
src/lxc/lxc_driver.c | 3 ++-
src/qemu/qemu_driver.c
We have plenty of callbacks in the driver. Some of these
callbacks require more than one argument to be passed. For that
we currently have a data type (struct) per each callback. Well,
so far for only one - SELinuxSCSICallbackData. But lets turn it
into more general name so it can be reused in
Current implementation of 'toURI' migration interfaces does not support all
combinations of interface versions and protocol versions. For example 'toURI2'
with p2p flag will not migrate if driver supports only v3params proto.
This is not convinient as drivers that starts to support migration have
May be a matter of a taste but this version with one return point in every
function looks simplier to understand and to exetend too. Anyway after such
a heavy refactoring a little cleanup will not hurt.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c |
This is more structured code so it will be easier to add branch for _PARAMS
protocol here. It is not a pure refactoring strictly speaking as we remove
scenarios for broken cases when driver defines V3 feature and implements
perform function. So it is additionally a more solid code.
Signed-off-by:
'useParams' parameter usage is an example of contol coupling. Most of the work
inside the function is done differently for different value of this flag except
for the uri check. Lets split this function into 2, one with extensible
parameters set and one with hardcoded parameter set. Common uri
All toURI functions have same checks for flags and features compatibility for
direct and p2p case. Let's factor this checks out before we reuse common code
in toURI functions family. As a side affect we have a more clear code
representation of uri passing conventions for p2p and direct cases.
Checks for migration's parameter set and support by protocol are slightly
scattered in code. Let's put it in one place, namely every protocol function
should check it's parameter set.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c | 56
Let's put main functionality into params version of virDomainMigrateUnmanaged
as a preparation step for merging it with virDomainMigratePeer2PeerParams.
virDomainMigrateUnmanaged then does nothing more then just adapting arguments.
Signed-off-by: Nikolay Shirokovskiy
As promised in previous patch.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c | 43 +++
1 files changed, 23 insertions(+), 20 deletions(-)
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index
Introduce a new function for the check. virDomainMigrateUnmanagedParams is not
a good candidate for this functionality as it is used by migrate family
functions too and its have its own checks that are superset of extracted and we
don't need to check twice.
Actually name of the function is
Finally on this step we get what we were aimed for - toURI{1, 2} (and
migration{*} APIs too) now can work thru V3_PARAMS protocol. Execution path
goes thru unchanged virDomainMigrateUnmanaged adapter function which is called
by all target places.
Note that we keep the fact that direct migration
Extract parametes adapdation and checking which is protocol dependent into
designated functions. Leave only branching and common checks in
virDomainMigrateUnmanagedParams.
Signed-off-by: Nikolay Shirokovskiy
---
src/libvirt-domain.c | 84
From: Michal Privoznik
Direct migration should work if *perform3 is present but *perform
is not. This is situation when driver migration is implemented
after new version of driver function is introduced. We should not
be forced to support old version too as its parameter
On 10.09.2015 13:17, Daniel P. Berrange wrote:
> We have a new libvirt-appdev-guide-python which we need to
> promote to users. Rewrite the existing page to mention it
> too. Also use the new URL location which is automatically
> refreshed once a day.
>
> Signed-off-by: Daniel P. Berrange
p2p plain and direct function are good candidates for code reuse. Their main
function is same - to branch among different versions of migration protocol and
implementation of this function is also same. Also they have other common
functionality in lesser aspects. So let's merge them.
But as they
commit 4b53d0d4ac9c "libxl: don't remove persistent domain on start
failure" cleans up the vm object and sets it to NULL if the vm is not
persistent, however at end job vm (now NULL) is dereferenced via the call to
libxlDomainObjEndJob. Avoid this by skipping "endjob" and going
straight to
There's a couple reports of things failing in this area (bug 1259070),
but it's tough to tell what's going wrong without stderr from
qemu-bridge-helper. So let's report stderr in the error message
Couple new examples:
virbr0 is inactive:
internal error: /usr/libexec/qemu-bridge-helper --use-vnet
On 09/10/2015 12:35 PM, Cole Robinson wrote:
There's a couple reports of things failing in this area (bug 1259070),
but it's tough to tell what's going wrong without stderr from
qemu-bridge-helper. So let's report stderr in the error message
Couple new examples:
virbr0 is inactive:
internal
In Java 1.6 source mode, javac reported the error:
```
src/main/java/org/libvirt/Library.java:93: unreported exception
java.lang.Exception; must be caught or declared to be thrown
```
Since the code inside the try block does not throw any checked
exceptions, we only need to handle unchecked
When using JDK 1.8 with the compiler option `-source 1.6` or `-source
1.7` or JDK 1.7 with the `-source 1.6` compiler option, compilation
failed with:
```
src/main/java/org/libvirt/event/DomainEvent.java:63: error: incompatible types:
inference variable T#1 has incompatible upper bounds
Initially reported by Wido den Hollander here[1].
[1]: http://www.redhat.com/archives/libvir-list/2015-September/msg00052.html
Claudio Bley (2):
Fix compilation error for unreported exceptions
Fix compilation error when using -source 1.x
src/main/java/org/libvirt/Library.java
At Mon, 7 Sep 2015 11:36:38 +0200,
Wido den Hollander wrote:
>
>
> On 04-09-15 07:12, Claudio Bley wrote:
> > The thing is: the code compiles just fine with an actual Java 7
> > compiler (OpenJDK 1.7.0_85), but not when using a Java 8 compiler
> > (OpenJDK 1.8.0_60) with the `-source 1.7`
30 matches
Mail list logo