On Mon, Dec 12, 2011 at 4:47 PM, Sasha Levin <levinsasha...@gmail.com> wrote:
> +       /* mmap the actual kernel */
> +       kvm->bz_fd = dup(fd_kernel);
> +       kvm->bz_len = st.st_size;
> +       setup_end = ALIGN(setup_size - PAGE_SIZE, PAGE_SIZE); /* Need it 
> aligned to PAGE_SIZE */
> +       kvm->bz_start = mmap(NULL, kvm->bz_len, PROT_READ | PROT_WRITE,
> +                               MAP_PRIVATE, kvm->bz_fd, setup_end);
>
> -       while ((nr = read(fd_kernel, p, 65536)) > 0)
> -               p += nr;
> +       /* NOP everything before the kernel start */
> +       memset(kvm->bz_start, 0x90, setup_size - setup_end);

So what's the deal with this NOP thing? It really needs a comment that
explains it all.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to