All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] 3.1.3 (and ??) timer_mode fix in xend for virt-install
Date: Fri, 18 Jan 2008 22:20:50 +0000	[thread overview]
Message-ID: <20080118222050.GF25808@redhat.com> (raw)
In-Reply-To: <20080118151316625.00000001968@djm-pc>

On Fri, Jan 18, 2008 at 03:13:16PM -0700, Dan Magenheimer wrote:
> > so can't confirm that yet. I'll try and reproduce it - what 
> > error were you getting
> > when trying to create a VM ?  libvirt doesn't specify any 
> > timer_mode parameter
> > when creating VMs, so it should use whatever XenD's default 
> > is for that.
> 
> Traceback below.
> 
> Yeah, I'm no parseltongue but I think the default wasn't
> specified properly.
> 
> Note also that I am using python-virtinst-0.99 so maybe
> the interface to the XendServer has changed in more recent
> releases and wouldn't provoke the problem?
> 
> Dan
> 
> 
> Starting install...
> libvir: Xen Daemon error : GET operation failed:
> libvir: Xen Daemon error : POST operation failed: (xend.err 'Error creating doma
> in: long() argument must be a string or a number')

Ok this is useful. I'd say that message comes from this:

             xc.hvm_set_param(self.domid, HVM_PARAM_TIMER_MODE,
                  long(self.info["platform"].get("timer_mode")))


And that 'self.info["platform"].get("timer_mode")' is returning None,
causing the long() cal to fail. 

So either we need to make sure that 'platform' gets a default value
set for 'timer_mode', or make the hvm_set_param() call conditional
like

   if self.info["platform"].get("timer_mode") is not None:
       xc.hvm_set_param(self.domid, HVM_PARAM_TIMER_MODE,
                  long(self.info["platform"].get("timer_mode")))

I assume the Hypervisor itself already has a default timemode value,
so making this set_param conditional is probably easiest.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

  parent reply	other threads:[~2008-01-18 22:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-18 21:22 [PATCH] 3.1.3 (and ??) timer_mode fix in xend for virt-install Dan Magenheimer
2008-01-18 21:28 ` Keir Fraser
2008-01-18 21:41   ` Dan Magenheimer
2008-01-18 21:59     ` Daniel P. Berrange
2008-01-18 22:09       ` Keir Fraser
2008-01-18 22:13       ` Dan Magenheimer
2008-01-18 22:19         ` Keir Fraser
2008-01-18 22:20         ` Daniel P. Berrange [this message]
2008-01-18 22:39           ` Dan Magenheimer
2008-01-18 22:34       ` Daniel P. Berrange

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080118222050.GF25808@redhat.com \
    --to=berrange@redhat.com \
    --cc=dan.magenheimer@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.