lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4537CC24.2070708@qumranet.com>
Date:	Thu, 19 Oct 2006 21:04:04 +0200
From:	Avi Kivity <avi@...ranet.com>
To:	Anthony Liguori <aliguori@...ibm.com>
CC:	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/7] KVM: userspace interface

Anthony Liguori wrote:
> Sorry if I missed this, but can you provide a link to the QEMU changes?
>

I'll do that once I get my sourceforge page and post it here.  Watch 
this space.


> It's hard to tell what's going on without seeing the userspace 
> portions of this.
>
> My initial impression is that you've taken the Xen approach of trying 
> to use QEMU only for IO emulation.  If this is the case, it won't work 
> long term.  While you can use vm86 mode for 16 bit virtualization for 
> most cases, it cannot handle big real mode.  You need the ability to 
> transfer down to QEMU and allow it to do emulation.
>

We started using VT only for 64 bit, then added 32 bit, then 16-bit 
protected, then vm86 and real mode.  We'd transfer the x86 state on each 
mode change, but it was (a) fragile (b) considered unclean.

You're right that "big real" mode is not supported, but so far that 
hasn't been a problem.  Do you know of an OS that needs big real mode?

> Ideally, instead of having as large of an x86 emulator in kernel 
> space, you would just drop down to QEMU to do emulation as needed 
> (doing only a single basic block and returning).  This would let you 
> have a much reduced partial emulator in kernel space that only did the 
> most common (and performance critical) instructions.
>

Over time that emulator would grow as OSes and compilers evolve... and 
we'd really like to keep basic things like the apic in the kernel (as 
does Xen).


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ