All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: kevin.tian@intel.com, suravee.suthikulpanit@amd.com,
	stefano.stabellini@eu.citrix.com, eddie.dong@intel.com,
	ian.jackson@eu.citrix.com, xen-devel@lists.xen.org,
	jbeulich@suse.com, jun.nakajima@intel.com
Subject: Re: [PATCH 1/2] libxl: Set guest parameters from config file during a restore
Date: Tue, 01 Apr 2014 09:45:01 -0400	[thread overview]
Message-ID: <533AC2DD.1000900@oracle.com> (raw)
In-Reply-To: <1396348627.8667.91.camel@kazak.uk.xensource.com>

On 04/01/2014 06:37 AM, Ian Campbell wrote:
> On Sat, 2014-03-29 at 23:05 -0400, Boris Ostrovsky wrote:
>> @@ -484,22 +506,11 @@ static int hvm_build_set_params(xc_interface *handle, uint32_t domid,
>>   
>>       xc_get_hvm_param(handle, domid, HVM_PARAM_STORE_PFN, store_mfn);
>>       xc_get_hvm_param(handle, domid, HVM_PARAM_CONSOLE_PFN, console_mfn);
>> -    xc_set_hvm_param(handle, domid, HVM_PARAM_PAE_ENABLED,
>> -                     libxl_defbool_val(info->u.hvm.pae));
>> -#if defined(__i386__) || defined(__x86_64__)
>> -    xc_set_hvm_param(handle, domid, HVM_PARAM_VIRIDIAN,
>> -                     libxl_defbool_val(info->u.hvm.viridian));
>> -    xc_set_hvm_param(handle, domid, HVM_PARAM_HPET_ENABLED,
>> -                     libxl_defbool_val(info->u.hvm.hpet));
>> -#endif
>> -    xc_set_hvm_param(handle, domid, HVM_PARAM_TIMER_MODE, timer_mode(info));
>> -    xc_set_hvm_param(handle, domid, HVM_PARAM_VPT_ALIGN,
>> -                     libxl_defbool_val(info->u.hvm.vpt_align));
>> -    xc_set_hvm_param(handle, domid, HVM_PARAM_NESTEDHVM,
>> -                     libxl_defbool_val(info->u.hvm.nested_hvm));
>>       xc_set_hvm_param(handle, domid, HVM_PARAM_STORE_EVTCHN, store_evtchn);
>>       xc_set_hvm_param(handle, domid, HVM_PARAM_CONSOLE_EVTCHN, console_evtchn);
>>   
>> +    hvm_set_conf_params(handle, domid, info);
> Can you confirm that this isn't now called twice on domain create, once
> from libxl__build_pre and then again here.

No, I can't.

I thought I checked that libxl__build_pre() is not called on create and 
of course it clearly is. So this was me being rather sloppy.

I'll remove hvm_set_conf_params() call from hvm_build_set_params() and 
leave it only in libxl__build_pre().

-boris

  reply	other threads:[~2014-04-01 13:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-30  3:05 [PATCH 0/2] Time-related fixes for migration Boris Ostrovsky
2014-03-30  3:05 ` [PATCH 1/2] libxl: Set guest parameters from config file during a restore Boris Ostrovsky
2014-04-01 10:37   ` Ian Campbell
2014-04-01 13:45     ` Boris Ostrovsky [this message]
2014-03-30  3:05 ` [PATCH 2/2] x86/HVM: Use fixed TSC value when saving or restoring domain Boris Ostrovsky
2014-03-31  9:51   ` Jan Beulich
2014-03-31 14:01     ` Boris Ostrovsky
2014-03-31 14:08       ` Tian, Kevin
2014-03-31 14:34       ` Jan Beulich
2014-03-31 15:06         ` Boris Ostrovsky
2014-03-31 15:09           ` Jan Beulich
2014-03-31 15:29   ` Tian, Kevin
2014-03-31 14:41 ` [PATCH 0/2] Time-related fixes for migration Tian, Kevin
2014-03-31 15:30   ` Boris Ostrovsky

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=533AC2DD.1000900@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=eddie.dong@intel.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=jun.nakajima@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=xen-devel@lists.xen.org \
    /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.