qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH] [RFC] try to reduce kvm impact in core qemu cod


From: Avi Kivity
Subject: [Qemu-devel] Re: [PATCH] [RFC] try to reduce kvm impact in core qemu code.
Date: Wed, 30 Apr 2008 01:33:59 +0300
User-agent: Thunderbird 2.0.0.12 (X11/20080226)

Glauber Costa wrote:
Hi. This is a proposal for reducing the impact of kvm functions in core qemu
code. This is by all means not ready, but I felt like posting it, so a 
discussion
on it could follow.

The idea in this patch is to replace the specific kvm details from core qemu 
files
like vl.c, with driver_yyy() functions. When kvm is not running, those 
functions would
just return (most of time), absolutely reducing the impact of kvm code.

As I wanted to test it, in this patch I changed the kvm functions to be called 
driver_yyy(),
but that's not my final goal. I intend to use a function pointer schema, 
similar to what the linux
kernel already do for a lot of its subsystem, to isolate the changes.

Comments deeply welcome.

While I would be very annoyed if someone referred to kvm as a qemu accelerator, I think accelerator_yyy() is more descriptive than driver_yyy().

I did not see any references to kqemu, but I imagine you mean this to abstract kqemu support as well.

Other than that, looks really good.

--
Any sufficiently difficult bug is indistinguishable from a feature.





reply via email to

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