Displaying 20 results from an estimated 44 matches for "qemu_driver".
2012 Aug 14
1
Which functions call qemu_driver API?
Hi,
Excuse me, I have watched qemu_driver.c where most of the libvirt
API is overrided in order to connect qemu. But I am confused which functions
then call those qemu_driver API? I mean where is the qemu_driver
implementation? Libvirt.c? But how does the qemu_driver connect and control
qemu?
Thanks a lot!
Regards,
Corey
--------...
2015 Nov 08
2
Re: virDomainCoreDumpWithFormat files created as root
2011 Apr 21
7
[PATCHv11 0/6] libvirt/qemu - persistent modification of devices
Here is v11. Fixed comments/bugs and updated against the latest libvirt.git.
Changes v10->v11:
- fixed comments on each patches
- fixed cgroup handling in patch 3.
- fixed MODIFY_CURRENT handling in patch 4.
most of diff comes from refactoring qemu/qemu_driver.c
--
conf/domain_conf.c | 40 ++
conf/domain_conf.h | 5
libvirt_private.syms | 3
qemu/qemu_driver.c | 727 +++++++++++++++++++++++++++++++--------------------
4 files changed, 500 insertions(+), 275 deletions(-)
Thanks,
-Kame
2018 Mar 02
2
Re: Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)
...t; <snip/>
> >
> > I see the flow is virDomainUpdateDeviceFlags -> qemuMonitorChangeMedia, but
> > the cephx auth is drop, so make update error. Anybody meet this error?
>
> Yes, this is a libvirt bug. I think this fixes the issue:
>
> diff --git i/src/qemu/qemu_driver.c w/src/qemu/qemu_driver.c
> index 96454c17c..0e5ad9971 100644
> --- i/src/qemu/qemu_driver.c
> +++ w/src/qemu/qemu_driver.c
> @@ -7842,6 +7842,8 @@ qemuDomainChangeDiskLive(virDomainObjPtr vm,
> virQEMUDriverPtr driver,
> bool f...
2014 Mar 20
2
Live migration process in src/qemu_driver.ca
Hello,
I have been trying to track different phases of a live migration process. I
am using libvirt with qemu-kvm. I am issuing migration commands using
virsh.
Now, I want to measure the time spent in each phase of live migration,
e.g., pre-copy and stop-copy. I stumbled upon the file qemu_driver.c. It
has functions like
qemudDomainMigratePrepare2
qemudDomainMigratePerform
qemudDomainMigrateFinish2
I want to know whether qemudDomainMigratePerform and
qemudDomainMigrateFinish2 directly map to the pre-copy and stop-copy phase?
or the qemudDomainMigratePerform function performs both of them?...
2014 Mar 20
0
Re: Live migration process in src/qemu_driver.ca
...been trying to track different phases of a live migration process. I
> am using libvirt with qemu-kvm. I am issuing migration commands using
> virsh.
>
> Now, I want to measure the time spent in each phase of live migration,
> e.g., pre-copy and stop-copy. I stumbled upon the file qemu_driver.c. It
> has functions like
>
> qemudDomainMigratePrepare2
> qemudDomainMigratePerform
> qemudDomainMigrateFinish2
These functions perform different handshakes between the two libvirt
ends of the migration. However, the entire migration is done by a
single qemu monitor command, and...
2014 Mar 20
1
Re: Live migration process in src/qemu_driver.ca
...nt phases of a live migration
> process. I
> > am using libvirt with qemu-kvm. I am issuing migration commands using
> > virsh.
> >
> > Now, I want to measure the time spent in each phase of live migration,
> > e.g., pre-copy and stop-copy. I stumbled upon the file qemu_driver.c. It
> > has functions like
> >
> > qemudDomainMigratePrepare2
> > qemudDomainMigratePerform
> > qemudDomainMigrateFinish2
>
> These functions perform different handshakes between the two libvirt
> ends of the migration. However, the entire migration is done...
2018 Mar 05
2
Re: Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)
...the flow is virDomainUpdateDeviceFlags -> qemuMonitorChangeMedia, but
> >>> the cephx auth is drop, so make update error. Anybody meet this error?
> >>
> >> Yes, this is a libvirt bug. I think this fixes the issue:
> >>
> >> diff --git i/src/qemu/qemu_driver.c w/src/qemu/qemu_driver.c
> >> index 96454c17c..0e5ad9971 100644
> >> --- i/src/qemu/qemu_driver.c
> >> +++ w/src/qemu/qemu_driver.c
> >> @@ -7842,6 +7842,8 @@ qemuDomainChangeDiskLive(virDomainObjPtr vm,
> >> virQEMUDriverPtr...
2015 Nov 18
0
Re: virDomainCoreDumpWithFormat files created as root
On 08.11.2015 12:43, noxdafox wrote:
> I've been spending a bit of time looking into libvirt's code and I
> believe this is not implemented as Daniel first said.
>
> The issue is in the qemuOpenFileAs function in src/qemu/qemu_driver.c
> which ignores the dynamic ownership flag and does not set correct
> ownership on the file.
>
> The qemuOpenFileAs function is used by other ones as well, so I wonder
> if this affects other QEMU features.
>
> I tried to fix and test it in different use cases and I didn...
2017 Nov 15
1
Re: Urgent: virsh - change-media run into a promptly close of libvirt
...mu/qemu_hotplug.c:303
This is fixed in current upstream by commit id '8056721cbb'
John
> #1 0x00007f49ff9e9253 in qemuDomainChangeDiskLive (force=false, driver=0x7f49f841b700,
> dev=<optimized out>, vm=<optimized out>, conn=<optimized out>)
> at qemu/qemu_driver.c:7842
> #2 qemuDomainUpdateDeviceLive (dom=<optimized out>, force=false, dev=<optimized out>,
> vm=<optimized out>, conn=<optimized out>) at qemu/qemu_driver.c:7873
> #3 qemuDomainUpdateDeviceFlags (dom=<optimized out>, xml=<optimized out>, flags...
2018 Feb 27
2
Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)
Hello Everyone,
My pc run in CentOS 7.4 and install libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph
10.2.10 ALL-in-One.
I use python-sdk with libvirt and run [self.domain.updateDeviceFlags(xml,
libvirt.VIR_DOMAIN_AFFECT_LIVE)] on CDROM (I want to change media path).
However, I enable libvirt debug log , the log as below:
"2018-02-26 13:09:13.638+0000: 50524: debug :
2012 Aug 16
1
Where does "cmd" initailize in qemu_command.c?
...ich
represents the input of virFindFileInPath in Util.c. Through
virFindFileInPath, one could find a requested executable file in the PATH
env to start specified hypervisors.
So could you please tell me what the value of args[0] is? Or where does
cmd->args initialize?
2.
In qemu_driver.c, there is a function call "vm =
virDomainFindByUUID(&driver->domains, dom->uuid);", whose returned value
"vm" is important in the next functions. Then we could get the "vm"'s value
in hash.c which is the end part to lookup domains saved in hashtable....
2011 Feb 23
0
[PATCH 1/2] libvirt/qemu : allow persistent modification of disks via A(De)ttachDeviceFlags
...irsh attach/detach-disk XXXX --persistent',
modifying inactive domain definition via virsh.
This patch adds a support for qemu. With this patch,
virsh attach/detach-disk --persistent works well with qemu.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
---
src/qemu/qemu_driver.c | 170 ++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 163 insertions(+), 7 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 0f25a2a..703f86a 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -4082,16 +4082,174 @@ cleanup:...
2018 Feb 27
0
Re: Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)
...ug log , the log as below:
>
> <snip/>
>
> I see the flow is virDomainUpdateDeviceFlags -> qemuMonitorChangeMedia, but
> the cephx auth is drop, so make update error. Anybody meet this error?
Yes, this is a libvirt bug. I think this fixes the issue:
diff --git i/src/qemu/qemu_driver.c w/src/qemu/qemu_driver.c
index 96454c17c..0e5ad9971 100644
--- i/src/qemu/qemu_driver.c
+++ w/src/qemu/qemu_driver.c
@@ -7842,6 +7842,8 @@ qemuDomainChangeDiskLive(virDomainObjPtr vm,
virQEMUDriverPtr driver,
bool force)
{
+ virQEMUDriverCon...
2018 Mar 02
0
Re: Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)
...t;>
>>> I see the flow is virDomainUpdateDeviceFlags -> qemuMonitorChangeMedia, but
>>> the cephx auth is drop, so make update error. Anybody meet this error?
>>
>> Yes, this is a libvirt bug. I think this fixes the issue:
>>
>> diff --git i/src/qemu/qemu_driver.c w/src/qemu/qemu_driver.c
>> index 96454c17c..0e5ad9971 100644
>> --- i/src/qemu/qemu_driver.c
>> +++ w/src/qemu/qemu_driver.c
>> @@ -7842,6 +7842,8 @@ qemuDomainChangeDiskLive(virDomainObjPtr vm,
>> virQEMUDriverPtr driver,
>>...
2018 Feb 27
1
Reply: Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)
...ug log , the log as below:
>
> <snip/>
>
> I see the flow is virDomainUpdateDeviceFlags ->
> qemuMonitorChangeMedia, but the cephx auth is drop, so make update error.
Anybody meet this error?
Yes, this is a libvirt bug. I think this fixes the issue:
diff --git i/src/qemu/qemu_driver.c w/src/qemu/qemu_driver.c index
96454c17c..0e5ad9971 100644
--- i/src/qemu/qemu_driver.c
+++ w/src/qemu/qemu_driver.c
@@ -7842,6 +7842,8 @@ qemuDomainChangeDiskLive(virDomainObjPtr vm,
virQEMUDriverPtr driver,
bool force)
{
+ virQEMUDriverCon...
2020 Sep 25
2
Re: Help on Meson build Error
...from ../src/util/virfile.c:42:
> /usr/include/libutil.h:43:10: fatal error: sys/_types.h: No such file or directory
> 43 | #include <sys/_types.h>
> | ^~~~~~~~~~~~~~
> compilation terminated.
> [51/908] Compiling C object src/qemu/libvirt_driver_qemu_impl.a.p/qemu_driver.c.o
> ninja: build stopped: subcommand failed
>
> I have /usr/include/sys/types.h, but no "_types.h"
Are you building on FreeBSD? Because that's where we expect
<libutil.h> to be included. If you're not on FreeBSD, can you check
which package /usr/include/libuti...
2018 Mar 05
0
Re: Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)
...rDomainUpdateDeviceFlags -> qemuMonitorChangeMedia, but
>>>>> the cephx auth is drop, so make update error. Anybody meet this error?
>>>>
>>>> Yes, this is a libvirt bug. I think this fixes the issue:
>>>>
>>>> diff --git i/src/qemu/qemu_driver.c w/src/qemu/qemu_driver.c
>>>> index 96454c17c..0e5ad9971 100644
>>>> --- i/src/qemu/qemu_driver.c
>>>> +++ w/src/qemu/qemu_driver.c
>>>> @@ -7842,6 +7842,8 @@ qemuDomainChangeDiskLive(virDomainObjPtr vm,
>>>> vi...
2020 Sep 25
3
Re: Help on Meson build Error
...r/include/libutil.h:43:10: fatal error: sys/_types.h: No such file or directory
> > > 43 | #include <sys/_types.h>
> > > | ^~~~~~~~~~~~~~
> > > compilation terminated.
> > > [51/908] Compiling C object src/qemu/libvirt_driver_qemu_impl.a.p/qemu_driver.c.o
> > > ninja: build stopped: subcommand failed
> > >
> > > I have /usr/include/sys/types.h, but no "_types.h"
> >
> > Are you building on FreeBSD? Because that's where we expect
> > <libutil.h> to be included. If you're not...
2012 Jun 20
1
update virDomainDef with xml config
Libvirt Version: 0.9.8
Hi:
I added a new api for qemu_driver. and both added libvirt.c and remote.
I tested it and it worked well. the function of this new api was add a new field in xml config of domain. (I added it like qemudDomainSetMemoryFlags)at the same time, I added a new member to struct virDomainDef. then I tested xml config converted to virDomainde...