qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] new kqemu win98 hack affects FreeBSD
@ 2005-08-08 22:07 Juergen Lock
  2005-08-08 23:40 ` Paul Brook
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Lock @ 2005-08-08 22:07 UTC (permalink / raw)
  To: qemu-devel, freebsd-emulation

Hi!

 I got a report that kqemu doesnt speed up FreeBSD guests anymore,
and found out that the win98 hack stops kqemu from being used.
If i disable it and add this to cpu-exec.c,

Index: cpu-exec.c
@@ -232,6 +232,13 @@
 #ifdef USE_KQEMU
             if (kqemu_is_ok(env) && env->interrupt_request == 0) {
                 int ret;
+#if 1
+		static uint32_t lastldtlimit = 0;
+		if (env->ldt.limit != lastldtlimit) {
+			lastldtlimit = env->ldt.limit;
+			printf("new ldt limit 0x%x\n", (int)lastldtlimit);
+		}
+#endif
                 env->eflags = env->eflags | cc_table[CC_OP].compute_all() | (DF & DF_MASK);
                 ret = kqemu_cpu_exec(env);
                 /* put eflags in CPU temporary format */


then a short run with FreeSBIE gives this:

new ldt limit 0xffff
new ldt limit 0xfff
new ldt limit 0x1fff
new ldt limit 0xfff
new ldt limit 0x1fff
new ldt limit 0xfff
new ldt limit 0x1fff
new ldt limit 0x87
new ldt limit 0x1fff
new ldt limit 0x87
new ldt limit 0x1fff
new ldt limit 0xfff
new ldt limit 0x2fff
new ldt limit 0x87
new ldt limit 0xfff
new ldt limit 0x87
new ldt limit 0xfff
new ldt limit 0x87
new ldt limit 0xfff

 So maybe we need a new switch -win98-hack... :)

	Juergen

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] new kqemu win98 hack affects FreeBSD
  2005-08-08 22:07 [Qemu-devel] new kqemu win98 hack affects FreeBSD Juergen Lock
@ 2005-08-08 23:40 ` Paul Brook
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Brook @ 2005-08-08 23:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: freebsd-emulation, Juergen Lock

>
>  So maybe we need a new switch -win98-hack... :)

It's spelt -no-kqemu :-)

Paul

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-08 23:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 22:07 [Qemu-devel] new kqemu win98 hack affects FreeBSD Juergen Lock
2005-08-08 23:40 ` Paul Brook

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).