Skip to contentSkip to conversation

PROC_MM

uml-devel Jiri Olsa 2 participants 4 messages Nov 26, 2007 User-mode Linux (UML)

lore
Share & tools
lore

Jiri Olsa

author
#0 lore raw

Hi,

I see some code related to PROC_MM

static inline void check_skas3_proc_mm(void)

{
        non_fatal("  - /proc/mm...");
        if (access("/proc/mm", W_OK) < 0) {
                proc_mm = 0;  
                perror("not found");
        }   
        else if (!proc_mm)
                non_fatal("found but disabled on command line\n");
        else non_fatal("found\n");
}

I did not find PROC_MM config option in the kernel or any other way to get /proc/mm file. Is it just old code pending for removal, or am I missing smth... :)

thanks,
Jirka

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 3 lines · Jiri Olsa

Hi,

I see some code related to PROC_MM

<snip>

Quoted 2 lines

I did not find PROC_MM config option in the kernel or any other way to get /proc/mm file. Is it just old code pending for removal, or am I missing smth... :)

There exists a patchset which allows you to run UML in skas3 mode. The said mode uses /proc/mm.
I suppose the bit you are seeing is a small part of that patchset which did get to the mainline.

Karol Swietlicki

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

author
#2 lore raw
Quoted 7 lines · Karol Swietlicki
Quoted 3 lines · Jiri Olsa

Hi,

I see some code related to PROC_MM

<snip>

Quoted 7 lines
Quoted 2 lines

I did not find PROC_MM config option in the kernel or any other way to get /proc/mm file. Is it just old code pending for removal, or am I missing smth... :)

There exists a patchset which allows you to run UML in skas3 mode. The said mode uses /proc/mm.
I suppose the bit you are seeing is a small part of that patchset which did get to the mainline.

I see, anyway the latest SKAS3 patch I found is from 07-Feb-2007.
http://www.user-mode-linux.org/~blaisorblade/patches/skas3-2.6/

Where can I get the latest one? When is it going to the mainline?

Quoted 3 lines

Karol Swietlicki

thanks,
jirka

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#3 lore raw
Quoted 4 lines

I see, anyway the latest SKAS3 patch I found is from 07-Feb-2007.
http://www.user-mode-linux.org/~blaisorblade/patches/skas3-2.6/

Where can I get the latest one? When is it going to the mainline?

I'm afraid that I don't know when it is going mainline, if ever. Jeff?

However one thing that I know is that there exist some other patches. The newest one I saw applied to 2.6.23, on the uml-user mailing list. It was not enough to give me skas3, /proc/mm would not work right. I have not checked there for a new version and I don't keep track of that list. There are also patches on http://uml.nagafix.co.uk/ nearly at the bottom of the page. I have not tried those, so I cannot comment on them. Neither of the two patches I mention are official, as far as I could gather, unless I missed something obivous.

Karol Swietlicki

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel