On Mon, 2011-12-12 at 20:10 +0200, Avi Kivity wrote: > On 12/12/2011 04:47 PM, Sasha Levin wrote: > > This patch mmaps guest kernel into it's own memory slot instead of reading > > it into the memory. > > > > - } else { > > - /* First RAM range from zero to the PCI gap: */ > > > > + /* Mapped kernel */ > > + phys_start = BZ_KERNEL_START; > > + phys_size = bzl; > > + host_mem = kvm->bz_start; > > + > > + kvm__register_mem(kvm, phys_start, phys_size, host_mem); > > + > > + /* Rest of the memory */ > > + phys_start = BZ_KERNEL_START + bzl; > > + phys_size = kvm->ram_size - (BZ_KERNEL_START + bzl); > > + host_mem = kvm->ram_start + (BZ_KERNEL_START + bzl); > > + > > + kvm__register_mem(kvm, phys_start, phys_size, host_mem); > > > > > You don't actually need separate slots for this (there is no requirement > that a slot == one vma). How exactly would I put it into one slot? -- Sasha. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html