linux-um archives
 help / color / mirror / Atom feed
From: "Steve Schmidtke" <steve_schmidtke@hotmail.com>
To: kraxel@bytesex.org
Cc: User-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff.
Date: Sun, 24 Oct 2004 03:03:42 +0000	[thread overview]
Message-ID: <BAY24-F2R77bieLYCT40001280e@hotmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 803 bytes --]

Gerd Knorr wrote:
>the X-Server wants IOPL access for some obscure
>reason, it shouldn't need that when running on top of a framebuffer
>device.  Anyone has an idea on that?

I looked into this a while ago.  What I found was that you have to add UML 
to the exclude ifdef in CheckGenericGA() from xfree86/common/xf86Bus.c, and 
also around all the iopl() and ioperm() exclude ifdefs in 
xfree86/os_support/linux/linux_video.c.

I think it doesn't hurt to add  Option "PciOsConfig"  to the ServerFlags 
section in the conf file.

I also remember making the attached guest kernel patch at one point 
(apologies for hand editing it).

It would be nice if someone would code up an Option "NoHwIO" or something to 
X that takes care of this, instead of the ifdef hell. :)

Hope that helps,

Steve Schmidtke


[-- Attachment #2: vt_kbd.txt --]
[-- Type: text/plain, Size: 499 bytes --]

diff *~ -Naur linux.orig/drivers/char/vt.c linux.new/drivers/char/vt.c
--- linux.orig/drivers/char/vt.c	Thu Nov 28 18:53:12 2002
+++ linux.new/drivers/char/vt.c		Sun Aug  1 13:44:36 2003
@@ -146,7 +146,13 @@

int _kbd_rate(struct kbd_repeat *rep)
{
+#if defined(__arch_um__)
+	/* if X finds that this succeeds, it won't try to bang on
+	 * the (non-existent) hardware directly */
+	return 0;
+#else
	return -EINVAL;
+#endif
}

void (*kd_mksound)(unsigned int hz, unsigned int ticks) = _kd_mksound;


             reply	other threads:[~2004-10-24  3:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-24  3:03 Steve Schmidtke [this message]
2004-10-25 11:03 ` [uml-devel] [patches] ptrace fix, x11 fb update, minor stuff Gerd Knorr
2004-10-25 11:28   ` Geert Uytterhoeven
2004-10-25 11:40     ` Gerd Knorr
2004-10-25 12:03       ` Geert Uytterhoeven
2004-10-25 15:47         ` Gerd Knorr
2004-10-25 16:04           ` Geert Uytterhoeven
2004-10-25 20:56             ` Gerd Knorr
  -- strict thread matches above, loose matches on Subject: below --
2004-10-22 18:41 Gerd Knorr
2004-10-22 19:23 ` Geert Uytterhoeven
2004-10-22 20:04   ` Gerd Knorr
2004-10-22 21:01     ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY24-F2R77bieLYCT40001280e@hotmail.com \
    --to=steve_schmidtke@hotmail.com \
    --cc=User-mode-linux-devel@lists.sourceforge.net \
    --cc=kraxel@bytesex.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox