qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] linux-user, x86: use target_mmap() to allocate


From: Kirill A. Shutemov
Subject: [Qemu-devel] Re: [PATCH] linux-user, x86: use target_mmap() to allocate idt, gdt and ldt tables
Date: Sat, 1 Nov 2008 13:12:13 +0200
User-agent: Mutt/1.5.18 (2008-05-29)

On Sat, Nov 01, 2008 at 11:54:00AM +0100, Jan Kiszka wrote:
> Kirill A. Shutemov wrote:
> > On Sat, Nov 01, 2008 at 10:33:07AM +0100, Jan Kiszka wrote:
> >> Kirill A. Shutemov wrote:
> >>> env->*dt.base should fits target address space, so we should use
> >>> target_mmap to allocate it.
> >> I just noticed that this bug is still unfixed upstream, was about to
> >> repost my corresponding patch [1], but then found this even nicer
> >> approach. Could someone please finally merge a fix?
> >>
> >> Kirill, do you also have a patch for the problem [2] addresses in your
> >> queue?
> > 
> > No, I don't. But we also can use target_mmap(with my mmap_find_vma()) for
> > it, I guess. Can you provide any testcase to reproduce the bug?
> 
> I don't have a testcase for this. I just came across it at the time this
> h2g usage caused a compiler warning. Laster on, this warning was papered
> over, but the bug remained though I reminded people a few times.
> 
> We don't need special allocation here (that's what I originally thought
> as well), we just need a robust way of detecting the guest-host address
> conflict:

You are right.

> 
> http://article.gmane.org/gmane.comp.emulators.qemu/28381
> 
> Maybe you can go through my old series and pick up the bits that still
> make sense. The user emulation is not on my daily radar, so these things
> could be forgotten again if I have to track them. :-]

Your patches 1,4,5 look good for me.

-- 
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + ALT Linux Team, http://www.altlinux.com/

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]