linux-um archives
 help / color / mirror / Atom feed
From: "roland" <for_spam@gmx.de>
To: Gerd Knorr <kraxel@bytesex.org>
Cc: user-mode-linux-devel@lists.sourceforge.net,
	uml-user <user-mode-linux-user@lists.sourceforge.net>
Subject: [uml-devel] Re: [uml-user] Re: Workaround for bug #851759 -  SuSE YAST in textmode does not work
Date: Mon, 8 Dec 2003 23:30:18 +0100	[thread overview]
Message-ID: <004a01c3bdda$dd2e38e0$2000000a@schlepptopp> (raw)
In-Reply-To: 20031208095906.GB22878@bytesex.org

hi!

> Known workarounds:
>   * boot with "hwprobe=-sys" (that will make the hardware detect
>     skip the critical test), or
ah - thanks, that seems to work fine. is this just a param, that tells 
yast to skip the detection test? can you tell me,  why i need to pass 
that as a kernel param, not as a Yast param or an environment variable? 
if this doesn`t break or influence other things, i think this is _THE_
workaround for the problem and should be mentioned in the suse-howto or 
in the faq. btw: does YaST2 in gui mode behave the same? don`t have X11-
Yast installed inside my uml root-image - so i cannot test at the moment.

i deliver a text snippet here - perhaps someone could make some correction 
or addition because my english is not so perfect:

------------------

Yast problems within UML
------------------------
Yast is the setup and configuration tool of SuSE-Linux. If you are going 
to use it, you may encounter problems(Yast seems to freeze). It`s not for 
sure, but it is possibly an UML bug (to be fixed). Some modules within YaST 
do automatic hardware detection and there is a routine inside which detects, 
if your linux runs "inside" vmware. This seems to cause the problem. A known 
workaround for this is to add "hwprobe=-sys" to the uml commandline. This 
will make the hardware detection inside Yast skip the critical test. Further 
information can be found here:
http://sourceforge.net/mailarchive/message.php?msg_id=6224097


-----------------


regards
roland




----- Original Message ----- 
From: "Gerd Knorr" <kraxel@bytesex.org>
To: "roland" <for_spam@gmx.de>
Cc: <user-mode-linux-devel@lists.sourceforge.net>; "uml-user" <user-mode-linux-user@lists.sourceforge.net>
Sent: Monday, December 08, 2003 10:59 AM
Subject: [uml-user] Re: Workaround for bug #851759 - SuSE YAST in textmode does not work


> > "list systemProbe = SCR:Read(.probe.system);"
> 
> Oh, that one.  Didn't know yast triggeres this too.  That is actually
> a bug in the uml kernel (there should be a mail in the -devel archive
> ...).  One if the things the hardware probes does is to check whenever
> it runs within vmware or not, and that test hangs (source code below).
> 
> Known workarounds:
>   * boot with "hwprobe=-sys" (that will make the hardware detect
>     skip the critical test), or
>   * don't use skas mode (it hangs in skas mode only for some
>     musterious reason), or
>   * just do something else in another terminal, that will unblock
>     it too (scheduler bug in the uml kernel?).
> 
> > btw: what would be a better solution: asking the suse people to make
> > yast "uml-aware" or fixing those things inside uml?
> 
> IMHO this one is a UML kernel bug.
> 
>   Gerd
> 
> ==============================[ cut here ]==============================
> #define _GNU_SOURCE /* we want memmem() */
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <unistd.h>
> #include <signal.h>
> 
> #include <sys/types.h>
> #include <sys/wait.h>
> 
> void sigsegv_handler(int signum) { exit(77); }
> 
> int chk_vmware(void)
> {
>   static int is_vmware = -1;
>   int child, status;
> 
>   /* do the check only once */
>   if(is_vmware < 0) {
> 
>     child = fork();
> 
>     if(child == 0) {
>       signal(SIGSEGV, sigsegv_handler);
> 
>       asm(
>         "push %ebx\n"
>         "\tpush %edx\n"
>         "\tpush %eax\n"
>         "\tpush %ecx\n"
>         "\tmov $0x564d5868,%eax\n"
>         "\tmov $0xa,%ecx\n"
>         "\tmov $0x5658,%edx\n"
>         "\tin (%dx),%eax\n"
>         "\tpop %ecx\n"
>         "\tpop %eax\n"
>         "\tpop %edx\n"
>         "\tpop %ebx\n"
>       );
> 
>       _exit(66);
>     }
>     else {
>       if(waitpid(child, &status, 0) == child) {
>         status = WEXITSTATUS(status);
>         if(status == 66) is_vmware = 1;
>         if(status == 77) is_vmware = 0;
>       }
>     }
>   }
>   return is_vmware;
> }
> 
> int main(int argc, char *argv[])
> {
> int rc;
> 
> fprintf(stderr, "check for vmware... ");
> rc = chk_vmware();
> fprintf(stderr, "%s\n", rc ? "yes" : "no");
> return rc;
> }
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
> 


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2003-12-08 22:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-08  0:33 [uml-devel] Workaround for bug #851759 - SuSE YAST in textmode does not work roland
2003-12-08  0:34 ` Matt Ayres
2003-12-08  9:40   ` Henrik Nordstrom
2003-12-08  9:44 ` Henrik Nordstrom
2003-12-08 20:32   ` [uml-user] " roland
2003-12-08  9:59 ` [uml-devel] " Gerd Knorr
2003-12-08 22:30   ` roland [this message]
2003-12-09  9:06     ` [uml-devel] Re: [uml-user] " Gerd Knorr
2003-12-10 21:14   ` [uml-devel] " Henrik Nordstrom
2003-12-10 23:52     ` roland
2003-12-11 12:00     ` Gerd Knorr
2003-12-11 12:58       ` Henrik Nordstrom
2003-12-11 14:06         ` Gerd Knorr
2003-12-11 21:59       ` roland
2003-12-12  8:58         ` Gerd Knorr
2003-12-12 11:31           ` Henrik Nordstrom
2003-12-12 11:55             ` Gerd Knorr

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='004a01c3bdda$dd2e38e0$2000000a@schlepptopp' \
    --to=for_spam@gmx.de \
    --cc=kraxel@bytesex.org \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=user-mode-linux-user@lists.sourceforge.net \
    /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