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: <20100318151737.GA2875@elte.hu>
Date:	Thu, 18 Mar 2010 16:17:37 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Anthony Liguori <anthony@...emonkey.ws>
Cc:	Avi Kivity <avi@...hat.com>,
	"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Sheng Yang <sheng@...ux.intel.com>,
	linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
	Marcelo Tosatti <mtosatti@...hat.com>,
	oerg Roedel <joro@...tes.org>,
	Jes Sorensen <Jes.Sorensen@...hat.com>,
	Gleb Natapov <gleb@...hat.com>,
	Zachary Amsden <zamsden@...hat.com>, ziteng.huang@...el.com,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Fr?d?ric Weisbecker <fweisbec@...il.com>
Subject: Re: [RFC] Unify KVM kernel-space and user-space code into a single
 project


* Anthony Liguori <anthony@...emonkey.ws> wrote:

> On 03/18/2010 08:00 AM, Ingo Molnar wrote:
> >>
> >> [...]  kvm in fact knows nothing about vga, to take your last example. 
> >> [...]
> >
> > Look at the VGA dirty bitmap optimization a'ka the KVM_GET_DIRTY_LOG 
> > ioctl.
> >
> > See qemu/kvm-all.c's kvm_physical_sync_dirty_bitmap().
> >
> > It started out as a VGA optimization (also used by live migration) and 
> > even today it's mostly used by the VGA drivers - albeit a weak one.
> >
> > I wish there were stronger VGA optimizations implemented, copying the 
> > dirty bitmap is not a particularly performant solution. (although it's 
> > certainly better than full emulation) Graphics performance is one of the 
> > more painful aspects of KVM usability today.
> 
> We have to maintain a dirty bitmap because we don't have a paravirtual 
> graphics driver.  IOW, someone needs to write an Xorg driver.
>
> Ideally, we could just implement a Linux framebuffer device, right?

No, you'd want to interact with DRM.

( Especially as you want to write guest accelerators passing guest-space 
  OpenGL requests straight to the kernel DRM level. )

Especially if you want to do things like graphics card virtualization, with 
aspects of the graphics driver passed through to the guest OS.

There are all kernel space projects, going through Xorg would be a horrible 
waste of performance for full-screen virtualization. It's fine for the 
windowed or networked case (and good as a compatibility fallback), but very 
much not fine for local desktop use.

> Well, we took that approach in Xen and that sucks even worse because the 
> Xorg framebuffer driver doesn't implement any of the optimizations that the 
> Linux framebuffer supports and the Xorg driver does not provide use the 
> kernel's interfaces for providing update regions.
> 
> Of course, we need to pull in X into the kernel to fix this, right?

FYI, this part of X has already been pulled into the kernel, it's called DRM. 
If then it's being expanded.

> Any sufficiently complicated piece of software is going to interact with a 
> lot of other projects.  The solution is not to pull it all into one massive 
> repository.  It's to build relationships and to find ways to efficiently 
> work with the various communities.

That's my whole point with this thread: the kernel side of KVM and qemu, but 
all practical purposes should not be two 'separate communities'. They should 
be one and the same thing.

Separation makes sense where the relationship is light or strictly 
hierarchical - here it's neither. KVM and Qemu is interconnected, quite 
fundamentally so.

> And we're working on this with X.  We'll have a paravirtual graphics driver 
> very soon.  There are no magic solutions.  We need more developers working 
> on the hard problems.

The thing is, writing up a DRM connector to a guest Linux OS could be done in 
no time. It could be deployed to users in no time as well, with the proper 
development model.

That after years and years of waiting proper GX support is _still_ not 
implemented in KVM is really telling of the efficiency of development based on 
such disjoint 'communities'. Maybe put up a committee as well to increase 
efficiency? ;-)

	Ingo
--
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