xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Michal Novotny <minovotn@redhat.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: "'xen-devel@lists.xensource.com'" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Fix restore handling checks
Date: Tue, 22 Jun 2010 07:43:40 +0200	[thread overview]
Message-ID: <4C204D8C.3020303@redhat.com> (raw)
In-Reply-To: <C8456846.181EC%keir.fraser@eu.citrix.com>

On 06/21/2010 08:04 PM, Keir Fraser wrote:
> On 21/06/2010 17:30, "Michal Novotny"<minovotn@redhat.com>  wrote:
>
>    
>> Hi,
>> this is the patch to fix restore handling to implement some more checks
>> to support more checks than for UUID and name duplicity. This patch
>> basically disallows the migration/restore of IDE drives with the
>> read-only flag since this is not supported according to the ATAPI/IDE
>> specifications so we should disallow this for both domain creation and
>> domain migration/restore.
>>      
> What about CD-ROMs? This would break my test domain config, for example.
>
>    

Right, there's the exception for CD-ROMs according to the spec. I should 
implement this as well but read-only IDE disk devices are not supported 
according to the IDE specs.

>> This patch implements it for both create and
>> restore/migrate functionality.
>>
>> Also, the check whether the host machine does have enough memory
>> available for the guest has been implemented which can be the real issue
>> when you try to migrate a guest from one machine to another that is not
>> having enough memory for this guest. The guest memory gets transferred
>> but it fails to run so it's not running on either of those machines
>> (i.e. domain is not on the destination nor source host machine).
>>      
> Failed restore should get reported back to the host that is saving the guest
> state, and cause that machine to resume execution of the original VM. Does
> that not work for you?
>
> Possibly checking up front for available memory on the target is a good
> idea, but it shouldn't be *essential* if the error handling is up to par.
>
>   -- Keir
>    

It was not working but I'm still coping with some issues that are 
save/restore related so maybe this is the reason why I was unable to see 
this behaviour.

Michal

>    
>> I did try it with restore functionality now since I've been able to make
>> it working for save once so I'm currently using one save image for the
>> testing but unfortunately I'm having many issues with the common
>> migration and save functionality since I've been able to make it working
>> once to save it correctly. Fortunately the restores for this one
>> particular save image is working fine. I was also thinking about 2
>> concurrent migrations to the guest and/or save with the concurrent
>> migration and it should be the issue (although it's not been tested
>> because of reasons described above) since the domain gets created and
>> it's available in the XendDomain list (i.e. xc.domain_getinfo() list) so
>> it shouldn't be an issue here.
>>
>> Michal
>>
>> Signed-off-by: Michal Novotny<minovotn@redhat.com>
>>      
>
>    


-- 
Michal Novotny<minovotn@redhat.com>, RHCE
Virtualization Team (xen userspace), Red Hat

  reply	other threads:[~2010-06-22  5:43 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-21 16:30 [PATCH] Fix restore handling checks Michal Novotny
2010-06-21 18:04 ` Keir Fraser
2010-06-22  5:43   ` Michal Novotny [this message]
2010-06-22  6:11     ` Michal Novotny
2010-06-22  6:14       ` Keir Fraser
2010-06-22  6:17         ` Michal Novotny
2010-06-22 12:56           ` Michal Novotny
2010-06-22 14:10             ` Konrad Rzeszutek Wilk
2010-06-23 11:27               ` Michal Novotny
2010-06-22 20:46             ` Dan Magenheimer
2010-06-23  9:59               ` Michal Novotny
2010-06-23 11:21               ` Michal Novotny
2010-06-23 13:51                 ` Dan Magenheimer
2010-06-23 14:14                   ` Michal Novotny
2010-06-22 14:56     ` Ian Jackson
2010-06-23 11:19       ` Paolo Bonzini
2010-06-23 11:27         ` Ian Jackson
2010-06-23 11:29           ` Michal Novotny
2010-06-23 11:50             ` Ian Jackson
2010-06-23 11:54               ` Michal Novotny
2010-06-23 12:04                 ` Ian Jackson
2010-06-23 12:10                   ` Paolo Bonzini
2010-06-23 12:20                     ` Michal Novotny
2010-06-23 12:20                     ` Michal Novotny
2010-06-23 12:12                   ` Michal Novotny
2010-06-23 12:33                   ` Alan Cox
2010-06-23 15:12                     ` George Dunlap
2010-06-23 16:26                     ` Dan Magenheimer
2010-06-23 12:35             ` Alan Cox
2010-06-23 12:37               ` Michal Novotny

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=4C204D8C.3020303@redhat.com \
    --to=minovotn@redhat.com \
    --cc=keir.fraser@eu.citrix.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 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).