From: David Vrabel <david.vrabel@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org,
Ian Jackson <ian.jackson@eu.citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH 4/6] libxc, libxl, hvmloader: strip out outdated VM generation ID implementation
Date: Mon, 2 Jun 2014 10:23:11 +0100 [thread overview]
Message-ID: <538C427F.4070602@citrix.com> (raw)
In-Reply-To: <1401288625.10916.11.camel@kazak.uk.xensource.com>
On 28/05/14 15:50, Ian Campbell wrote:
> On Tue, 2014-05-27 at 18:31 +0100, David Vrabel wrote:
>> The VM generation ID support in libxc/libxl was based on a draft
>> specification which subsequently changed considerably. Remove much of
>> the code in anticipation of introducing something simpler that
>> conforms to the current specification from Microsoft.
>>
>> Switch to using a HVM param (HVM_PARAM_VM_GENERATION_ID_ADDR) instead
>> of the hvmloader/generation-id-address XenStore key. This simplifies
>> save/restore since it only needs to transfer the value of this param.
>>
>> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
>> ---
>> tools/firmware/hvmloader/acpi/build.c | 9 +++----
>> tools/libxc/xc_domain_restore.c | 44 +++------------------------------
>> tools/libxc/xc_domain_save.c | 5 ++--
>> tools/libxc/xenguest.h | 8 ++----
>> tools/libxl/libxl_create.c | 12 +++------
>> tools/libxl/libxl_dom.c | 25 ++-----------------
>> tools/libxl/libxl_internal.h | 8 ++----
>> tools/libxl/libxl_save_callout.c | 10 +++-----
>> tools/libxl/libxl_save_helper.c | 9 +++----
>> tools/libxl/libxl_save_msgs_gen.pl | 3 +--
>
> I've forgotten how this existing stuff works, but since there is no
> touching of libxl_types.idl or libxl.h here I think there was no
> application facing nob for the existing stuff, right? (the relevant
> libxc parameter is hardcoded in libxl).
>
> Hence nothing to remove and nothing to add a comment about.
Yes.
>> --- a/tools/libxc/xc_domain_save.c
>> +++ b/tools/libxc/xc_domain_save.c
>> @@ -1634,7 +1633,7 @@ int xc_domain_save(xc_interface *xch, int io_fd, uint32_t dom, uint32_t max_iter
>> } chunk = { 0, };
>>
>> chunk.id = XC_SAVE_ID_HVM_GENERATION_ID_ADDR;
>> - chunk.data = vm_generationid_addr;
>> + xc_get_hvm_param(xch, dom, HVM_PARAM_VM_GENERATION_ID_ADDR, &chunk.data);
>
> Are there any N->N+1 migration concerns here?
>
> I don't think so, since the stream always contains the address and what
> happens to it is entirely internal to the given host. Is that correct?
Yes, that is correct.
David
next prev parent reply other threads:[~2014-06-02 9:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-27 17:31 [PATCHv2 0/6] tools: rework VM Generation ID David Vrabel
2014-05-27 17:31 ` [PATCH 1/6] docs: update docs for the ~/platform/generation-id key David Vrabel
2014-05-28 14:44 ` Ian Campbell
2014-05-28 14:51 ` Andrew Cooper
2014-05-28 14:58 ` Ian Campbell
2014-05-27 17:31 ` [PATCH 2/6] hvm: add HVM_PARAM_VM_GENERATION_ID_ADDR David Vrabel
2014-05-27 17:31 ` [PATCH 3/6] tools/hvmloader: add helper functions to get/set HVM params David Vrabel
2014-05-27 17:31 ` [PATCH 4/6] libxc, libxl, hvmloader: strip out outdated VM generation ID implementation David Vrabel
2014-05-28 14:50 ` Ian Campbell
2014-06-02 9:23 ` David Vrabel [this message]
2014-05-27 17:31 ` [PATCH 5/6] libxl: add libxl_vm_generation_id_set() David Vrabel
2014-05-28 14:56 ` Ian Campbell
2014-06-02 9:25 ` David Vrabel
2014-05-27 17:31 ` [PATCH 6/6] xl: generate a new random VM generation ID if requested David Vrabel
-- strict thread matches above, loose matches on Subject: below --
2014-06-03 13:15 [PATCHv3 0/6] tools: rework VM Generation ID David Vrabel
2014-06-03 13:15 ` [PATCH 4/6] libxc, libxl, hvmloader: strip out outdated VM generation ID implementation David Vrabel
2014-06-10 10:42 ` Ian Campbell
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=538C427F.4070602@citrix.com \
--to=david.vrabel@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).