On 26 May 2012 08:05, Stas Sergeev <s...@list.ru> wrote:
> And I already have the mail like "why dosemu is running fast
> as root, and is slow running as user". I think this change should
> be undone. Yes, the non-zero lowmem base is a great work,
> cheers and regards, but, as long as it is hopelessly slower than
> vm86, I think the user have to be notified the hardest possible way.

The question is just how to do this? Before the change you had to
choose between manually setting cpu_emu=vm86 in dosemu.conf/dosemurc
or adjusting mmap_min_addr (perhaps also selinux, not sure how). Then
the Debian package was changed to set cpu_emu as vm86 as default
(including root), which I don't think is the best solution either, so
I change to have things work automatically.

Perhaps the best would be (under X) to display the emulation status in
the title bar, because no matter how many messages you write to the
terminal, if the user starts dosemu from an icon, a menu or alt-f2,
they will never be seen. Also, for 64bit dosemu I can't see any
difference so what should you put there?
Please install 32-bit Linux and run as root for full performance?

BTW, I think the msdos.c EMS frame usage can continued to done the old
way without using handles. It can even be changed to only use EMS API
functions as follows:

in prepare_ems_frame:

    static const u_short unmap[] = {0xffff, 0, 0xffff, 1, 0xffff, 2, 0xffff, 3};
    if (MSDOS_CLIENT.ems_map_buffer == NULL)
        MSDOS_CLIENT.ems_map_buffer = malloc(emm_get_size_for_page_map());
    emm_get_map_registers(MSDOS_CLIENT.ems_map_buffer);
    /* here 0 is the OS handle; the handle is irrelevant when doing
unmappings */
    emm_map_unmap_multi(unmap, 0, 4);

Then restore_ems_frame uses emm_set_map_registers as before. This will
also restore conventional RAM mappings which would be expensive if
mmap() were called, but of course useless mmap()s can  be easily
checked for in the EMS code.

Bart

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dosemu-devel mailing list
Dosemu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dosemu-devel

Reply via email to