|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: xl create should refuse to share block devices RW between domains
On 07/27/2010 08:33 AM, Ian Jackson wrote:
Good point. For stubdoms that's pretty obvious if you consider the stubdom to be part of the main domain. For dom0-resident qemu it you need a more subtle check which can match a domain to its corresponding qemu. A more comprehensive check would be nice, but just this would be useful. But whatever it does check should be 100% reliable. I think domU vs domU conflicts are the most important, since they can come about from normal operation of the tools. dom0 vs domU requires someone doing something non-tools-related. Yes, it needs to be race-free. In general I think that specific invocations of "xl" should be considered atomic operations. For something like domain creation, it should be able to gather and reserve all the resources required before actually starting the domain, and if it can't fail and release everything with a useful message. A test which can fail in certain racy circumstances is useless. NB that when we fix the bug that you can start multiple domains with the same name, you'll be able to avoid your PV/HVM accident by specifying the same name in each config file. BTW, that's another bug. xl create doesn't prevent two domains with the same name from being created...
J
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |