On Thu, 22 Nov 2012 14:26:10 -0800 "H. Peter Anvin" <hpa at zytor.com> wrote: > Bullshit. This should be a separate domain. Thanks for top-posting, hpa... > Andrew Cooper <andrew.cooper3 at citrix.com> wrote: > > >On 22/11/12 17:47, H. Peter Anvin wrote: > >> The other thing that should be considered here is how utterly > >> preposterous the notion of doing in-guest crash dumping is in a > >system > >> that contains a hypervisor. The reason for kdump is that on bare > >metal > >> there are no other options, but in a hypervisor system the right > >thing > >> should be for the hypervisor to do the dump (possibly spawning a > >clean > >> I/O domain if the I/O domain is necessary to access the media.) > >> > >> There is absolutely no reason to have a crashkernel sitting around in > > > >> each guest, consuming memory, and possibly get corrupt. > >> > >> -hpa > >> > > > >I agree that regular guests should not be using the kexec/kdump. > >However, this patch series is required for allowing a pvops kernel to > >be > >a crash kernel for Xen, which is very important from dom0/Xen's point > >of > >view. In fact, a normal kernel is used for dumping, so it can handle both, Dom0 crashes _and_ hypervisor crashes. If you wanted to address hypervisor crashes, you'd have to allocate some space for that, too, so you may view this "madness" as a way to conserve resources. The memory area is reserved by the Xen hypervisor, and only the extents are passed down to the Dom0 kernel. In other words, there is indeed no physical mapping for this area. Having said that, I see no reason why that physical mapping cannot be created if it is needed. Petr T