Re: [Libvir] VIR_DOMAIN_NOSTATE

2008-01-29 Thread Russ Blaine
Daniel P. Berrange wrote: Can you edit the src/xen_internal.c file and in the xenHypervisorGetDomInfo() method, add a printf() for the 'domain_flags' flags variable. IMHO the way we deal with this isn't quite correct. We merely mask out the high bits and then switch on the resulting value.

Re: [Libvir] VIR_DOMAIN_NOSTATE

2008-01-29 Thread Richard W.M. Jones
Russ Blaine wrote: Daniel P. Berrange wrote: Can you edit the src/xen_internal.c file and in the xenHypervisorGetDomInfo() method, add a printf() for the 'domain_flags' flags variable. IMHO the way we deal with this isn't quite correct. We merely mask out the high bits and then switch on the

Re: [Libvir] VIR_DOMAIN_NOSTATE

2008-01-29 Thread Daniel P. Berrange
On Tue, Jan 29, 2008 at 10:01:35AM -0800, Russ Blaine wrote: Daniel P. Berrange wrote: Can you edit the src/xen_internal.c file and in the xenHypervisorGetDomInfo() method, add a printf() for the 'domain_flags' flags variable. IMHO the way we deal with this isn't quite correct. We merely

Re: [Libvir] VIR_DOMAIN_NOSTATE

2008-01-29 Thread Russ Blaine
Host is Solaris, guest is WinXP. Richard W.M. Jones wrote: Russ Blaine wrote: Daniel P. Berrange wrote: Can you edit the src/xen_internal.c file and in the xenHypervisorGetDomInfo() method, add a printf() for the 'domain_flags' flags variable. IMHO the way we deal with this isn't quite

Re: [Libvir] VIR_DOMAIN_NOSTATE

2008-01-29 Thread Russ Blaine
Daniel P. Berrange wrote: What hypervisor version are you running. I'm struggling to see the codepath in the hypervisor 'getdomaininfo' call which could lead to domain_flags being zero. AFAICT, as well as the HVM flags, there must always be at least one other bit set. This is opensolaris 81

[Libvir] VIR_DOMAIN_NOSTATE

2008-01-25 Thread Russ Blaine
On Solaris-based xen 3.1.2 I am seeing virDomainGetInfo() often returning VIR_DOMAIN_NOSTATE in dominfo.state for domUs that are powered on and running. What exactly does VIR_DOMAIN_NOSTATE mean? Why does it exist? I suspect it is a catch-all in the API for hosts that don't entirely have their

Re: [Libvir] VIR_DOMAIN_NOSTATE

2008-01-25 Thread Richard W.M. Jones
Russ Blaine wrote: On Solaris-based xen 3.1.2 I am seeing virDomainGetInfo() often returning VIR_DOMAIN_NOSTATE in dominfo.state for domUs that are powered on and running. What exactly does VIR_DOMAIN_NOSTATE mean? Why does it exist? I suspect it is a catch-all in the API for hosts that don't

Re: [Libvir] VIR_DOMAIN_NOSTATE

2008-01-25 Thread Daniel Veillard
[please subscribe to the mailing-list, I can't guarantee proper delivery of mail bounced by the list tool if you are not subscibed, thanks !] On Thu, Jan 24, 2008 at 12:32:32PM -0800, Russ Blaine wrote: On Solaris-based xen 3.1.2 I am seeing virDomainGetInfo() often returning

Re: [Libvir] VIR_DOMAIN_NOSTATE

2008-01-25 Thread Russ Blaine
Richard W.M. Jones wrote: Russ Blaine wrote: On Solaris-based xen 3.1.2 I am seeing virDomainGetInfo() often returning VIR_DOMAIN_NOSTATE in dominfo.state for domUs that are powered on and running. What exactly does VIR_DOMAIN_NOSTATE mean? Why does it exist? I suspect it is a catch-all in

Re: [Libvir] VIR_DOMAIN_NOSTATE

2008-01-25 Thread Daniel P. Berrange
On Fri, Jan 25, 2008 at 06:39:00PM -0800, Russ Blaine wrote: Richard W.M. Jones wrote: Russ Blaine wrote: On Solaris-based xen 3.1.2 I am seeing virDomainGetInfo() often returning VIR_DOMAIN_NOSTATE in dominfo.state for domUs that are powered on and running. What exactly does