[libvirt] [RFC]: Volume allocation progress reporting

2009-03-24 Thread Cole Robinson
The attached patch implements storage volume allocation progress reporting for file volumes. Currently, the volume creation process looks like: - Grab the pool lock - Fully allocated the volume - 'define' the volume (so it shows up in 'virsh vol-list', etc) - Lookup the volume object to return -

Re: [libvirt] [PATCH] Fix sparse volume allocation reporting

2009-03-24 Thread Daniel Veillard
On Tue, Mar 24, 2009 at 03:29:21PM -0400, Cole Robinson wrote: > I have a sparse volume with a capacity of 1000M, and an allocation of a > little over 750M. 'du' prints the correct sizes, but 'virsh vol-dumpxml' > shows: > > 1048576000 > 6406307840 > > This is because we were calculating th

[libvirt] [PATCH] Fix sparse volume allocation reporting

2009-03-24 Thread Cole Robinson
I have a sparse volume with a capacity of 1000M, and an allocation of a little over 750M. 'du' prints the correct sizes, but 'virsh vol-dumpxml' shows: 1048576000 6406307840 This is because we were calculating the allocation size using the requested fs block size, instead of what stat actua

Re: [libvirt] virt-top

2009-03-24 Thread Daniel P. Berrange
On Tue, Mar 24, 2009 at 07:34:15PM +0200, Zvi Dubitzky wrote: > Are the sources of virt-top available at some repository to look at . > I do not see them in the Download section of libvirt Web site http://et.redhat.com/~rjones/virt-top/ And a whole lot more stuff here http://et.redhat.com/~rjo

[libvirt] virt-top

2009-03-24 Thread Zvi Dubitzky
Are the sources of virt-top available at some repository to look at . I do not see them in the Download section of libvirt Web site thanks Zvi Dubitzky Virtualization and System Architecture Email:d...@il.ibm.com IBM Haifa Research LaboratoryPhone: +972-4-8296182 Haifa, 31905, ISRAEL

Re: [libvirt] [PATCH 2/2] VirtualBox support to libvirt

2009-03-24 Thread Pritesh Kothari
Hi Daniel, > > I have a single template file called vbox_tmpl.c which is included > > multiple times during compilation using some pre-processor magic, for > > example: > > I hit that last Friday while starting to review the patch an found > that a bit strange. I couldn't think of any other cle

Re: [libvirt] save/ restore a domain with kvm

2009-03-24 Thread Zvi Dubitzky
Thanks a Question if I may. Are you familiar with the cpuTime of a VM that we get by libvirt from virDomainInfoPtr struct . Is that the real cpuTime of all the vcpus of a VM together ? e.g if I sample this cpuTime at 2 times apart by 'n' secs and get cpuTime1 and cpuTime2 , then if th

Re: [libvirt] [PATCH 1/2] VirtualBox support to libvirt

2009-03-24 Thread Pritesh Kothari
Hi Daniel, > > +VBOX_DRIVER_SOURCES = \ > > +vbox/VBoxXPCOMCGlue.c vbox/VBoxXPCOMCGlue.h \ > > +vbox/vbox_driver.c vbox/vbox_driver.h \ > > +vbox/vbox_V2_2.c > > Another thing, it would be better to have all the driver filenames > start

Re: [libvirt] [PATCH 2/2] VirtualBox support to libvirt

2009-03-24 Thread Daniel Veillard
On Tue, Mar 24, 2009 at 09:51:20AM +0100, Pritesh Kothari wrote: > > > +/** @file vbox_tmpl.c > > > + * Template File to support multiple versions of VirtualBox > > > + * at runtime :). > > > > Can you explain a little about this idea... & how it works > > First I will give the problem being faced

Re: [libvirt] [PATCH 1/2] VirtualBox support to libvirt

2009-03-24 Thread Daniel Veillard
On Wed, Mar 18, 2009 at 06:44:31PM +0100, Pritesh Kothari wrote: [...] > +VBOX_DRIVER_SOURCES = \ > +vbox/VBoxXPCOMCGlue.c vbox/VBoxXPCOMCGlue.h \ > +vbox/vbox_driver.c vbox/vbox_driver.h \ > +vbox/vbox_V2_2.c Another thing, it would be

Re: [libvirt] Improve heuristic for default guest architecture

2009-03-24 Thread Daniel Veillard
On Tue, Mar 24, 2009 at 11:16:38AM +, Daniel P. Berrange wrote: > On Fri, Mar 20, 2009 at 03:34:44PM +0100, Soren Hansen wrote: > > In libvirt 0.6.1, if you create a domain description of type 'kvm' > > without an arch set on an x86-64 host, you would get an i686 qemu guest > > rather than the

Re: [libvirt] Improve heuristic for default guest architecture

2009-03-24 Thread Daniel P. Berrange
On Fri, Mar 20, 2009 at 03:34:44PM +0100, Soren Hansen wrote: > In libvirt 0.6.1, if you create a domain description of type 'kvm' > without an arch set on an x86-64 host, you would get an i686 qemu guest > rather than the expected x86-64 kvm guest. > > This is because virCapabilitiesDefaultGuestA

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-24 Thread Daniel P. Berrange
On Fri, Mar 13, 2009 at 12:06:12PM +0100, Florian Vichot wrote: > Hi everyone, > > Here is the new patch, with the requested modifications: > - The target tag is now set to '/', and not used to specify the pivot > root location. > - Search and replace uses virBuffer and strstr() > - Use of virAsp

Re: [libvirt] [PATCH 2/2] VirtualBox support to libvirt

2009-03-24 Thread Pritesh Kothari
Hi Daniel, > These two should just return 0, and then the 'open' method > should return VIR_ERR_DECLINED if called with a virtualbox > URI. > > +else > > +return -1; > Likewise, this should just return 0; oops sorry, will change that. > > +/** @file vbox_tmpl.c > > + * Template File

[libvirt] Need help for thesis on Xen - disabling HAP for benchmarking purposes

2009-03-24 Thread Alexander Sascha
Hi, I'm a German student, writing my thesis on "Virtualization with Xen. Analysis and Comparision of Different Techniques such as Paravirtualization, Full Virtualization, and Utilization of Hardware Support Provided by the Processor". I'd like to know how I can disable HAP/RVI/Nested Paging