* [Qemu-devel] KQEMU on Win32 (+patch)
@ 2005-07-27 22:04 Filip Navara
2005-07-27 22:18 ` Hetz Ben Hamo
2005-07-28 0:33 ` Elefterios Stamatogiannakis
0 siblings, 2 replies; 15+ messages in thread
From: Filip Navara @ 2005-07-27 22:04 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1843 bytes --]
Hi,
as there were recently few questions about KQEMU I decided to dedicate
few minutes at answering them and to post a few comments.
> I'm trying to find out why qvm86 crashes the host (instant reboot
when right clicking on some icons on the guest desktop).
> So i thought if it is possible to use some code from kqemu-win32.c to
update qvm86-win32.c
No, I wrote both of the files and I can honestly tell you that copying
between them will not help. There is one known case where QVM86 on WinNT
platforms crashes the host machine and that's when NOEXECUTE support is
enabled (see boot.ini). The method QVM86 uses for executing the code
involves copying executable code into an allocated page which
unfortunately has the NX bit set. I have an experimental fix for this,
but I need someone with adequate environment (AMD64 and Win XP SP2+) to
test it... Of course host crash can be caused by other bug.
(Also note that this may apply to KQEMU too though I have no proof.)
> The changelog mentions that the KQEMU accelerator is now available as
> a preliminary executable for Windows. I've not been able to find a
> link to that version anywhere. Should I pull down the sources and
> compile on my Linux machine, or is there a pre-compiled version about?
You can compile it yourself on either Windows machine with MinGW or on
linux machine with MinGW cross-compiler. I'm temporary hosting a set of
QEMU / KQEMU 0.7.1 for Windows binaries here:
http://www.volny.cz/xnavara/qemu-0.7.1.zip. If anyone can offer me
hosting for these binaries I would be glad.
As a final note (especially for Fabrice), attached are patches for KQEMU
for easier driver installation (quite not there yet, but a bit closer)
and implementation of kqemu_schedule (as requested). I'm planing to port
this to QVM86 shortly.
Best regards,
Filip
[-- Attachment #2: kqemu-qemu.diff --]
[-- Type: text/x-patch, Size: 2344 bytes --]
Index: exec-all.h
===================================================================
RCS file: /cvsroot/qemu/qemu/exec-all.h,v
retrieving revision 1.34
diff -u -p -r1.34 exec-all.h
--- exec-all.h 24 Jul 2005 14:14:53 -0000 1.34
+++ exec-all.h 27 Jul 2005 20:53:43 -0000
@@ -607,6 +607,7 @@ int kqemu_init(CPUState *env);
int kqemu_cpu_exec(CPUState *env);
void kqemu_flush_page(CPUState *env, target_ulong addr);
void kqemu_flush(CPUState *env, int global);
+void kqemu_cpu_interrupt(CPUState *env);
static inline int kqemu_is_ok(CPUState *env)
{
Index: kqemu.c
===================================================================
RCS file: /cvsroot/qemu/qemu/kqemu.c,v
retrieving revision 1.4
diff -u -p -r1.4 kqemu.c
--- kqemu.c 24 Apr 2005 18:03:37 -0000 1.4
+++ kqemu.c 27 Jul 2005 20:53:24 -0000
@@ -456,11 +456,14 @@ int kqemu_cpu_exec(CPUState *env)
}
#ifdef _WIN32
- DeviceIoControl(kqemu_fd, KQEMU_EXEC,
- kenv, sizeof(struct kqemu_cpu_state),
- kenv, sizeof(struct kqemu_cpu_state),
- &temp, NULL);
- ret = kenv->retval;
+ if (DeviceIoControl(kqemu_fd, KQEMU_EXEC,
+ kenv, sizeof(struct kqemu_cpu_state),
+ kenv, sizeof(struct kqemu_cpu_state),
+ &temp, NULL)) {
+ ret = kenv->retval;
+ } else {
+ ret = -1;
+ }
#else
#if KQEMU_VERSION >= 0x010100
ioctl(kqemu_fd, KQEMU_EXEC, kenv);
@@ -544,6 +547,15 @@ int kqemu_cpu_exec(CPUState *env)
exit(1);
}
return 0;
+}
+
+void kqemu_cpu_interrupt(CPUState *env)
+{
+#if defined(_WIN32) && KQEMU_VERSION >= 0x010101
+ /* cancelling the I/O request causes KQEMU to finish executing the
+ current block and successfully returning. */
+ CancelIo(kqemu_fd);
+#endif
}
#endif
Index: vl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/vl.c,v
retrieving revision 1.133
diff -u -p -r1.133 vl.c
--- vl.c 24 Jul 2005 18:44:55 -0000 1.133
+++ vl.c 27 Jul 2005 20:54:26 -0000
@@ -875,6 +875,9 @@ static void host_alarm_handler(int host_
qemu_get_clock(rt_clock))) {
/* stop the cpu because a timer occured */
cpu_interrupt(global_env, CPU_INTERRUPT_EXIT);
+#ifdef USE_KQEMU
+ kqemu_cpu_interrupt(global_env);
+#endif
}
}
[-- Attachment #3: kqemu.diff --]
[-- Type: text/x-patch, Size: 5686 bytes --]
--- kqemu/kqemu-doc.html Sun Jul 24 20:02:14 2005
+++ kqemu/kqemu-doc.html Wed Jul 27 23:20:28 2005
@@ -173,16 +173,7 @@ the option <CODE>major=N</CODE> to set a
<H2><A NAME="SEC5" HREF="kqemu-doc.html#TOC5">2.3 QEMU Accelerator Installation for Windows</A></H2>
<P>
-Copy the kqemu driver <TT>`kqemu.sys'</TT> to
-<TT>`c:\winnt\system32\drivers'</TT>. Then do:
-
-<PRE>
-regedit kqemu.reg
-</PRE>
-
-<P>
-Now kqemu is installed and you must restart your system.
-
+Right click on <TT>`kqemu.inf'</TT> in Explorer and choose Install.
<P>
In order to start kqemu, you must do:
--- kqemu/kqemu-doc.texi Sun Jul 24 20:02:12 2005
+++ kqemu/kqemu-doc.texi Wed Jul 27 23:19:38 2005
@@ -112,13 +112,7 @@ the option @code{major=N} to set an alte
@section QEMU Accelerator Installation for Windows
-Copy the kqemu driver @file{kqemu.sys} to
-@file{c:\winnt\system32\drivers}. Then do:
-@example
-regedit kqemu.reg
-@end example
-
-Now kqemu is installed and you must restart your system.
+Right click on @file{kqemu.inf} in Explorer and choose Install.
In order to start kqemu, you must do:
@example
--- kqemu/kqemu-win32.c Sun Jul 24 19:39:55 2005
+++ kqemu/kqemu-win32.c Wed Jul 27 23:16:21 2005
@@ -36,6 +36,14 @@ typedef unsigned long long uint64_t;
/* XXX: make it dynamic according to available RAM */
#define MAX_LOCKED_PAGES (16386 / 4)
+struct kqemu_instance {
+ struct kqemu_state *state;
+ PIRP current_irp;
+};
+
+FAST_MUTEX instance_lock;
+struct kqemu_instance *active_instance;
+
/* lock the page at virtual address 'user_addr' and return its
page index. Return -1 if error */
struct kqemu_user_page *CDECL kqemu_lock_user_page(unsigned long *ppage_index,
@@ -150,19 +158,19 @@ void CDECL kqemu_io_unmap(void *ptr, uns
execution) */
int CDECL kqemu_schedule(void)
{
- /* XXX: do it */
- return TRUE;
+ return active_instance->current_irp->Cancel;
}
void CDECL kqemu_log(const char *fmt, ...)
{
- /* XXX: format parameters */
- DbgPrint("%s", fmt);
-}
+ char log_buf[1024];
+ va_list ap;
-struct kqemu_instance {
- struct kqemu_state *state;
-};
+ va_start(ap, fmt);
+ _vsnprintf(log_buf, sizeof(log_buf), fmt, ap);
+ DbgPrint("kqemu: %s", log_buf);
+ va_end(ap);
+}
NTSTATUS STDCALL
KQemuCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp)
@@ -256,12 +264,19 @@ KQemuDeviceControl(PDEVICE_OBJECT Device
break;
}
+ ExAcquireFastMutex(&instance_lock);
+ active_instance = State;
+ State->current_irp = Irp;
+
ctx = kqemu_get_cpu_state(State->state);
RtlCopyMemory(ctx, Irp->AssociatedIrp.SystemBuffer,
sizeof(*ctx));
ret = kqemu_exec(State->state);
RtlCopyMemory(Irp->AssociatedIrp.SystemBuffer, ctx, sizeof(*ctx));
+
+ ExReleaseFastMutex(&instance_lock);
+
Irp->IoStatus.Information = sizeof(*ctx);
Status = STATUS_SUCCESS;
}
@@ -311,6 +326,8 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
(KQEMU_VERSION) & 0xff);
MmLockPagableCodeSection(DriverEntry);
+
+ ExInitializeFastMutex(&instance_lock);
DriverObject->MajorFunction[IRP_MJ_CREATE] = KQemuCreate;
DriverObject->MajorFunction[IRP_MJ_CLOSE] = KQemuClose;
--- kqemu/kqemu.h Sun Jul 24 19:38:27 2005
+++ kqemu/kqemu.h Wed Jul 27 23:07:48 2005
@@ -1,7 +1,7 @@
#ifndef KQEMU_H
#define KQEMU_H
-#define KQEMU_VERSION 0x010100
+#define KQEMU_VERSION 0x010101
struct kqemu_segment_cache {
uint32_t selector;
--- kqemu/kqemu.inf Thu Jan 1 01:00:00 1970
+++ kqemu/kqemu.inf Wed Jul 27 22:34:39 2005
@@ -0,0 +1,64 @@
+; Copyright (C) 2005 Filip Navara, Damien Mascord
+
+[Version]
+Signature = "$Windows NT$"
+Class = System
+ClassGuid = {4D36E97D-E325-11CE-BFC1-08002BE10318}
+Provider = %Author%
+DriverVer = 04/28/2005,1.0
+
+[DestinationDirs]
+DefaultDestDir = 12
+KQemu.DriverFiles = 12
+KQemu.InfFiles = 10,inf
+
+[SourceDisksNames]
+1 = %InstDisk%
+
+[SourceDisksFiles]
+kqemu.sys = 1
+
+[Manufacturer]
+%Author% = KQemu.Manufacturer
+
+[KQemu.Manufacturer]
+%Description% = DefaultInstall,kqemu
+
+[DefaultInstall.NT]
+CopyFiles = KQemu.DriverFiles, KQemu.InfFiles
+AddReg = KQemu.UninstallRegistry
+
+[DefaultInstall.NT.Services]
+AddService = kqemu,,KQemuService_Inst
+
+[Uninstall.NT]
+DelFiles = KQemu.DriverFiles, KQemu.InfFiles
+DelReg = KQemu.UninstallRegistry
+
+[Uninstall.NT.Services]
+DelService = kqemu,0x00000200
+
+[KQemu.DriverFiles]
+kqemu.sys
+
+[KQemu.InfFiles]
+kqemu.inf
+
+[KQemu.UninstallRegistry]
+HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KQEMU,"DisplayName",,%Description%
+HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KQEMU,"UninstallString",0x20000,"RunDll32 setupapi.dll,InstallHinfSection Uninstall 132 %SystemRoot%\inf\kqemu.inf"
+
+[KQemuService_Inst]
+DisplayName = %Description%
+ServiceType = %SERVICE_KERNEL_DRIVER%
+StartType = %SERVICE_DEMAND_START%
+ErrorControl = %SERVICE_ERROR_NORMAL%
+ServiceBinary = %12%\kqemu.sys
+
+[Strings]
+Author = "Fabrice Bellard"
+Description = "KQEMU virtualisation module for QEMU"
+InstDisk = "KQEMU Install Disk"
+SERVICE_KERNEL_DRIVER = 1
+SERVICE_DEMAND_START = 3
+SERVICE_ERROR_NORMAL = 1
--- kqemu/kqemu.reg Tue Apr 12 23:24:49 2005
+++ /dev/null Wed Jul 27 23:24:00 2005
@@ -1,7 +0,0 @@
-REGEDIT4
-
-[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kqemu]
-"Type"=dword:00000001
-"Start"=dword:00000003
-"ErrorControl"=dword:00000001
-"DisplayName"="kqemu"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-27 22:04 [Qemu-devel] KQEMU on Win32 (+patch) Filip Navara
@ 2005-07-27 22:18 ` Hetz Ben Hamo
2005-07-28 0:33 ` Elefterios Stamatogiannakis
1 sibling, 0 replies; 15+ messages in thread
From: Hetz Ben Hamo @ 2005-07-27 22:18 UTC (permalink / raw)
To: qemu-devel
I've updated my QEMU download section: http://qemu.dad-answers.com/download/
Your binaries are there now (under the win32 directory)
Thanks,
Hetz
On 7/28/05, Filip Navara <navaraf@reactos.com> wrote:
> Hi,
>
> as there were recently few questions about KQEMU I decided to dedicate
> few minutes at answering them and to post a few comments.
>
> > I'm trying to find out why qvm86 crashes the host (instant reboot
> when right clicking on some icons on the guest desktop).
> > So i thought if it is possible to use some code from kqemu-win32.c to
> update qvm86-win32.c
>
> No, I wrote both of the files and I can honestly tell you that copying
> between them will not help. There is one known case where QVM86 on WinNT
> platforms crashes the host machine and that's when NOEXECUTE support is
> enabled (see boot.ini). The method QVM86 uses for executing the code
> involves copying executable code into an allocated page which
> unfortunately has the NX bit set. I have an experimental fix for this,
> but I need someone with adequate environment (AMD64 and Win XP SP2+) to
> test it... Of course host crash can be caused by other bug.
>
> (Also note that this may apply to KQEMU too though I have no proof.)
>
> > The changelog mentions that the KQEMU accelerator is now available as
> > a preliminary executable for Windows. I've not been able to find a
> > link to that version anywhere. Should I pull down the sources and
> > compile on my Linux machine, or is there a pre-compiled version about?
>
> You can compile it yourself on either Windows machine with MinGW or on
> linux machine with MinGW cross-compiler. I'm temporary hosting a set of
> QEMU / KQEMU 0.7.1 for Windows binaries here:
> http://www.volny.cz/xnavara/qemu-0.7.1.zip. If anyone can offer me
> hosting for these binaries I would be glad.
>
> As a final note (especially for Fabrice), attached are patches for KQEMU
> for easier driver installation (quite not there yet, but a bit closer)
> and implementation of kqemu_schedule (as requested). I'm planing to port
> this to QVM86 shortly.
>
> Best regards,
> Filip
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-27 22:04 [Qemu-devel] KQEMU on Win32 (+patch) Filip Navara
2005-07-27 22:18 ` Hetz Ben Hamo
@ 2005-07-28 0:33 ` Elefterios Stamatogiannakis
2005-07-28 9:26 ` Filip Navara
1 sibling, 1 reply; 15+ messages in thread
From: Elefterios Stamatogiannakis @ 2005-07-28 0:33 UTC (permalink / raw)
To: qemu-devel
Filip Navara wrote:
> > I'm trying to find out why qvm86 crashes the host (instant reboot
> when right clicking on some icons on the guest desktop).
> > So i thought if it is possible to use some code from kqemu-win32.c to
> update qvm86-win32.c
>
> No, I wrote both of the files and I can honestly tell you that copying
> between them will not help. There is one known case where QVM86 on WinNT
> platforms crashes the host machine and that's when NOEXECUTE support is
> enabled (see boot.ini). The method QVM86 uses for executing the code
> involves copying executable code into an allocated page which
> unfortunately has the NX bit set. I have an experimental fix for this,
> but I need someone with adequate environment (AMD64 and Win XP SP2+) to
> test it... Of course host crash can be caused by other bug.
>
I knew you wrote them both (who else could?). I was (wrongly) thinking
that the qvm86 version is older than kqemu but apparently they work
differently (thanks for the clarification).
As for the NOEXECUTE, i'm testing kqemu and qvm86 on a Athlon XP
(regular 32bit, without NX). So the instant reboots must be from
something else.
> You can compile it yourself on either Windows machine with MinGW or on
> linux machine with MinGW cross-compiler.
I tried to compile kqemu with MinGW without luck (although i didn't push
it much). The error was:
kqemu-win32.o(.text+0x217):kqemu-win32.c: undefined reference to
`_imp__MmMapIoSpace@16'
Probably it is that i don't have the windows driver development kit.
I'm temporary hosting a set of
> QEMU / KQEMU 0.7.1 for Windows binaries here:
> http://www.volny.cz/xnavara/qemu-0.7.1.zip.
Do these binaries include your latest patches?
teris.
ps I cannot imagine how a man can know that much about the windows
internals and at the same time be comfortable working with linux device
drivers stuff.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-28 0:33 ` Elefterios Stamatogiannakis
@ 2005-07-28 9:26 ` Filip Navara
2005-07-28 10:24 ` 姚春林
0 siblings, 1 reply; 15+ messages in thread
From: Filip Navara @ 2005-07-28 9:26 UTC (permalink / raw)
To: qemu-devel
Elefterios Stamatogiannakis wrote:
> [snip]
>
>> You can compile it yourself on either Windows machine with MinGW or
>> on linux machine with MinGW cross-compiler.
>
> I tried to compile kqemu with MinGW without luck (although i didn't
> push it much). The error was:
>
> kqemu-win32.o(.text+0x217):kqemu-win32.c: undefined reference to
> `_imp__MmMapIoSpace@16'
>
> Probably it is that i don't have the windows driver development kit.
This is common problem. IIRC you need to update the MinGW W32API package.
> I'm temporary hosting a set of
>
>> QEMU / KQEMU 0.7.1 for Windows binaries here:
>> http://www.volny.cz/xnavara/qemu-0.7.1.zip.
>
>
> Do these binaries include your latest patches?
Yes
Best regards,
Filip
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-28 9:26 ` Filip Navara
@ 2005-07-28 10:24 ` 姚春林
2005-07-28 12:30 ` Christian MICHON
0 siblings, 1 reply; 15+ messages in thread
From: 姚春林 @ 2005-07-28 10:24 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 90 bytes --]
QEMU+KQEMU 0.7.1 on windows is still too slow
when run linux guest system.menu is delay
[-- Attachment #2: Type: text/html, Size: 112 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-28 10:24 ` 姚春林
@ 2005-07-28 12:30 ` Christian MICHON
2005-07-28 12:40 ` Filip Navara
2005-07-28 13:18 ` 姚春林
0 siblings, 2 replies; 15+ messages in thread
From: Christian MICHON @ 2005-07-28 12:30 UTC (permalink / raw)
To: qemu-devel
inside the qemu monitor (CTRL-ALT-2), type "info kqemu".
Just to confirm.
If you get "kqemu is enabled", report exactly which linux
guest you're using. Did you do your own qemu compilation ?
if not, you surely missed applying the regedit file, reboot the
machine and do a "net start kqemu".
Side question: is there a way to start this net service
automatically ?
Christian
On 7/28/05, 姚春林 wrote:
> QEMU+KQEMU 0.7.1 on windows is still too slow
> when run linux guest system.menu is delay
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-28 12:30 ` Christian MICHON
@ 2005-07-28 12:40 ` Filip Navara
2005-07-28 13:18 ` 姚春林
1 sibling, 0 replies; 15+ messages in thread
From: Filip Navara @ 2005-07-28 12:40 UTC (permalink / raw)
To: Christian MICHON, qemu-devel
Christian MICHON wrote:
>inside the qemu monitor (CTRL-ALT-2), type "info kqemu".
>Just to confirm.
>
>If you get "kqemu is enabled", report exactly which linux
>guest you're using. Did you do your own qemu compilation ?
>
>if not, you surely missed applying the regedit file, reboot the
>machine and do a "net start kqemu".
>
>
JFYI, I replaced the .reg file with .inf file and the restart is no
longer necessary.
>Side question: is there a way to start this net service
>automatically ?
>
>
Generally yes.
- With the current setup you can change the driver settings to enable
loading it on Windows start by editing the "Start" values in
"HKEY_LOCAL_MACHINE/Software/CurrentControlSet/Services/KQEMU" registry
key and setting it to "2".
- In future I plan to add code for auto-loading the KQEMU driver to QEMU
if Fabrice agrees.
- Filip
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-28 12:30 ` Christian MICHON
2005-07-28 12:40 ` Filip Navara
@ 2005-07-28 13:18 ` 姚春林
2005-07-28 13:29 ` Christian MICHON
1 sibling, 1 reply; 15+ messages in thread
From: 姚春林 @ 2005-07-28 13:18 UTC (permalink / raw)
To: Christian MICHON, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1414 bytes --]
Host system Tinkpad R40e P4 2G 768M WINXP pro
qemu 0.7.1 mem 256
2005/7/28, Christian MICHON <christian.michon@gmail.com>:
>
> inside the qemu monitor (CTRL-ALT-2), type "info kqemu".
> Just to confirm.
kqemu is enadled
If you get "kqemu is enabled", report exactly which linux
> guest you're using. Did you do your own qemu compilation ?
debian + gnome 2.1
gnome is slow . and vmware with 256mem is more faster then qemu.
console is not feeling slow,XWindow is more slow.
if not, you surely missed applying the regedit file, reboot the
> machine and do a "net start kqemu".
>
> Side question: is there a way to start this net service
> automatically ?
>
> Christian
>
> On 7/28/05, 姚春林 wrote:
> > QEMU+KQEMU 0.7.1 on windows is still too slow
> > when run linux guest system.menu is delay
> > _______________________________________________
> > Qemu-devel mailing list
> > Qemu-devel@nongnu.org
> > http://lists.nongnu.org/mailman/listinfo/qemu-devel
> >
> >
> >
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
--
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_
/_/ 中国 ・ 江蘇省 ・ 南通
/_/
/_/ 姚春林
/_/
/_/ E-mail:chunlinyao@gmail.com <http://gmail.com>
/_/ WEB :
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_
[-- Attachment #2: Type: text/html, Size: 2571 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-28 13:18 ` 姚春林
@ 2005-07-28 13:29 ` Christian MICHON
2005-07-28 13:42 ` Cirrus Emulation (was: [Qemu-devel] KQEMU on Win32 (+patch)) Hetz Ben Hamo
2005-07-28 14:44 ` [Qemu-devel] KQEMU on Win32 (+patch) Doctor Bill
0 siblings, 2 replies; 15+ messages in thread
From: Christian MICHON @ 2005-07-28 13:29 UTC (permalink / raw)
To: qemu-devel
found out why :)
On 7/28/05, 姚春林 wrote:
(...)
> debian + gnome 2.1
> gnome is slow . and vmware with 256mem is more faster then qemu.
answer is: gnome usage. Bad idea, which ever is your emulator.
Try to go for lighter window manager environment, like fluxbox.
Try also to boot in framebuffer mode, in 800x600x16bpp. I noticed
this mode is quite fast :)
I think there are some patches to try to improve the cirrus emulated.
But I haven't seen any updated for a long time.
Christian
^ permalink raw reply [flat|nested] 15+ messages in thread
* Cirrus Emulation (was: [Qemu-devel] KQEMU on Win32 (+patch))
2005-07-28 13:29 ` Christian MICHON
@ 2005-07-28 13:42 ` Hetz Ben Hamo
2005-07-28 14:52 ` Christian MICHON
2005-07-28 14:44 ` [Qemu-devel] KQEMU on Win32 (+patch) Doctor Bill
1 sibling, 1 reply; 15+ messages in thread
From: Hetz Ben Hamo @ 2005-07-28 13:42 UTC (permalink / raw)
To: qemu-devel
Hmm,
Anyone has patches for Cirrus Logic emulation that hasn't been applied yet?
If so, could someone send them over please?
Thanks,
Hetz
On 7/28/05, Christian MICHON <christian.michon@gmail.com> wrote:
> found out why :)
>
> On 7/28/05, 姚春林 wrote:
> (...)
> > debian + gnome 2.1
> > gnome is slow . and vmware with 256mem is more faster then qemu.
>
> answer is: gnome usage. Bad idea, which ever is your emulator.
> Try to go for lighter window manager environment, like fluxbox.
>
> Try also to boot in framebuffer mode, in 800x600x16bpp. I noticed
> this mode is quite fast :)
>
> I think there are some patches to try to improve the cirrus emulated.
> But I haven't seen any updated for a long time.
>
> Christian
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-28 13:29 ` Christian MICHON
2005-07-28 13:42 ` Cirrus Emulation (was: [Qemu-devel] KQEMU on Win32 (+patch)) Hetz Ben Hamo
@ 2005-07-28 14:44 ` Doctor Bill
2005-07-28 15:08 ` Johannes Schindelin
1 sibling, 1 reply; 15+ messages in thread
From: Doctor Bill @ 2005-07-28 14:44 UTC (permalink / raw)
To: Christian MICHON, qemu-devel
If you are running Linux under Windows, I highly recommend using
coLinux. It is more of a pain to initially configure, but once it is
the code runs just as fast as with a native Linux boot. Maybe
someday, someone will merge the front ends to these two entirely
different programs...
If anyone knows some good Linux benchmark programs it would be
interesting to run comparisons on the same hardware of the two
different methods of vitalization.
Don't get me wrong, I am a strong advocate of QEMU. But only for
environments where there isn't a more direct route to host another OS.
So I do use QEMU to host other Windows operating systems, but I would
only use it for Linux system when coLinux is unusable.
Bill
On 7/28/05, Christian MICHON <christian.michon@gmail.com> wrote:
> found out why :)
>
> On 7/28/05, 姚春林 wrote:
> (...)
> > debian + gnome 2.1
> > gnome is slow . and vmware with 256mem is more faster then qemu.
>
> answer is: gnome usage. Bad idea, which ever is your emulator.
> Try to go for lighter window manager environment, like fluxbox.
>
> Try also to boot in framebuffer mode, in 800x600x16bpp. I noticed
> this mode is quite fast :)
>
> I think there are some patches to try to improve the cirrus emulated.
> But I haven't seen any updated for a long time.
>
> Christian
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Cirrus Emulation (was: [Qemu-devel] KQEMU on Win32 (+patch))
2005-07-28 13:42 ` Cirrus Emulation (was: [Qemu-devel] KQEMU on Win32 (+patch)) Hetz Ben Hamo
@ 2005-07-28 14:52 ` Christian MICHON
2005-07-29 7:23 ` Christian MICHON
0 siblings, 1 reply; 15+ messages in thread
From: Christian MICHON @ 2005-07-28 14:52 UTC (permalink / raw)
To: Hetz Ben Hamo, qemu-devel
http://cyberkinetica.homeunix.net/qemu/cirrus_vga.patch.gz
I found back the patch I mentionned. It's not in v0.7.1, but
I do not know its effects yet on cirrus speed.
It's tagged on Antony's page as:
"Attempt to speed up Cirrus VGA"
Christian
On 7/28/05, Hetz Ben Hamo wrote:
> Hmm,
>
> Anyone has patches for Cirrus Logic emulation that hasn't been applied yet?
>
> If so, could someone send them over please?
>
> Thanks,
> Hetz
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-28 14:44 ` [Qemu-devel] KQEMU on Win32 (+patch) Doctor Bill
@ 2005-07-28 15:08 ` Johannes Schindelin
2005-07-28 16:26 ` Joshua Kugler
0 siblings, 1 reply; 15+ messages in thread
From: Johannes Schindelin @ 2005-07-28 15:08 UTC (permalink / raw)
To: Doctor Bill, qemu-devel
Hi,
On Thu, 28 Jul 2005, Doctor Bill wrote:
> If you are running Linux under Windows, I highly recommend using
> coLinux.
AFAIK coLinux is
- only for WinNT and "better"
- not easily modified, because it relies on proprietary
development components.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Qemu-devel] KQEMU on Win32 (+patch)
2005-07-28 15:08 ` Johannes Schindelin
@ 2005-07-28 16:26 ` Joshua Kugler
0 siblings, 0 replies; 15+ messages in thread
From: Joshua Kugler @ 2005-07-28 16:26 UTC (permalink / raw)
To: qemu-devel
On Thursday 28 July 2005 07:08, Johannes Schindelin wrote:
> On Thu, 28 Jul 2005, Doctor Bill wrote:
> > If you are running Linux under Windows, I highly recommend using
> > coLinux.
It also requires a modified kernel, as coLinux is a different kind off "CPU."
--
Joshua Kugler
CDE System Administrator
http://distance.uaf.edu/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Cirrus Emulation (was: [Qemu-devel] KQEMU on Win32 (+patch))
2005-07-28 14:52 ` Christian MICHON
@ 2005-07-29 7:23 ` Christian MICHON
0 siblings, 0 replies; 15+ messages in thread
From: Christian MICHON @ 2005-07-29 7:23 UTC (permalink / raw)
To: qemu-devel
On 7/28/05, Christian MICHON wrote:
> http://cyberkinetica.homeunix.net/qemu/cirrus_vga.patch.gz
>
> It's tagged on Antony's page as:
> "Attempt to speed up Cirrus VGA"
I tried it yesterday with proper graphical benchmarks (win95 guest).
Some rendering is wrong on fonts (especially letter W uppercase)
and there's no speed improvement actually. :(
Any other patch or alternative card under dev ?
Christian
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2005-07-29 7:30 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-27 22:04 [Qemu-devel] KQEMU on Win32 (+patch) Filip Navara
2005-07-27 22:18 ` Hetz Ben Hamo
2005-07-28 0:33 ` Elefterios Stamatogiannakis
2005-07-28 9:26 ` Filip Navara
2005-07-28 10:24 ` 姚春林
2005-07-28 12:30 ` Christian MICHON
2005-07-28 12:40 ` Filip Navara
2005-07-28 13:18 ` 姚春林
2005-07-28 13:29 ` Christian MICHON
2005-07-28 13:42 ` Cirrus Emulation (was: [Qemu-devel] KQEMU on Win32 (+patch)) Hetz Ben Hamo
2005-07-28 14:52 ` Christian MICHON
2005-07-29 7:23 ` Christian MICHON
2005-07-28 14:44 ` [Qemu-devel] KQEMU on Win32 (+patch) Doctor Bill
2005-07-28 15:08 ` Johannes Schindelin
2005-07-28 16:26 ` Joshua Kugler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).