All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junjie Wei <junjie.wei@oracle.com>
To: Keir Fraser <keir.xen@gmail.com>
Cc: xen-devel@lists.xen.org
Subject: Re: VM save/restore
Date: Mon, 20 Aug 2012 16:58:06 -0400	[thread overview]
Message-ID: <5032A4DE.5040307@oracle.com> (raw)
In-Reply-To: <CC54F704.3C5C9%keir.xen@gmail.com>

On 08/18/2012 02:38 AM, Keir Fraser wrote:
>> It was caused by a hard-coded limit in tools/libxc/xc_domain_save.c:
>>
>> if ( info.max_vcpu_id >= 64 )
>> {
>>        ERROR("Too many VCPUS in guest!");
>>        goto out;
>> }
>>
>> And also in tools/libxc/xc_domain_restore.c:
>>
>> case XC_SAVE_ID_VCPU_INFO:
>>        buf->new_ctxt_format = 1;
>>        if ( RDEXACT(fd, &buf->max_vcpu_id, sizeof(buf->max_vcpu_id)) ||
>>            buf->max_vcpu_id >= 64 || RDEXACT(fd, &buf->vcpumap,
>>                                              sizeof(uint64_t)) ) {
>>            PERROR("Error when reading max_vcpu_id");
>>            return -1;
>>        }
>>
>> The code above is in both xen-4.1.2 and xen-unstable.
>>
>> I think if a VM can be successfully started, then save/restore should
>> also work. So I made a patch and did some testing.
>
> The check for 64 VCPUs is to cover the fact we only save/restore a 64-bit
> vcpumap. That would need fixing too surely, ot CPUs > 64 would be offline
> after restore I would imagine.
>
> And what is a PVM guest?
>
>   -- Keir
>

Paravirtualization / modified kernel. Am I using the wrong term "PVM"?

Thanks,
Junjie

  parent reply	other threads:[~2012-08-20 20:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-17 21:28 VM save/restore Junjie Wei
2012-08-18  6:38 ` Keir Fraser
2012-08-18  7:34   ` Keir Fraser
2012-08-20 20:54     ` Junjie Wei
2012-08-20 21:05     ` Junjie Wei
2012-08-20 20:58   ` Junjie Wei [this message]
2012-08-22 21:17     ` Keir Fraser

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=5032A4DE.5040307@oracle.com \
    --to=junjie.wei@oracle.com \
    --cc=keir.xen@gmail.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.