Linux Kernel Bug #32812 "ARCH=um, SUBARCH=i386: linking failure"
Hello UML maintainers,
I have run into a problem making a uml kernel for SUBARCH=i386 with support for XFS. This looks like a regression. Can you please take a look at
https://bugzilla.kernel.org/show_bug.cgi?id=32812
Thank you.
Martin Walch
Signature · 10 lines
------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Hi Martin,
Quoted 6 lines · Martin Walch
Hello UML maintainers,
I have run into a problem making a uml kernel for SUBARCH=i386 with support for XFS. This looks like a regression. Can you please take a look at
The cmpxchg8b_emu issue is already known and fixed. See:
http://git.kernel.org/linus/084189a
For the atomic64_read_386 issue I've attached a patch.
WARING: It's only compile time tested. :)
Please apply both and retry.
Thanks,
//richard
Quoted 16 lines
Thank you.
Martin Walch
--------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Signature · 2 lines
Thanks, //richard
arch/um/Kconfig.x86 +4 -0
@@ -8,6 +8,10 @@ config CMPXCHG_LOCAL bool default n +config X86_CMPXCHG64 + bool + default n + source "arch/x86/Kconfig.cpu" endmenu
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 10 lines · richard -rw- weinberger
Hi Martin,
Quoted 6 lines · Martin Walch
Hello UML maintainers,
I have run into a problem making a uml kernel for SUBARCH=i386 with support for XFS. This looks like a regression. Can you please take a look at
Quoted 8 lines
The
cmpxchg8b_emuissue is already known and fixed. See:
http://git.kernel.org/linus/084189aFor the
atomic64_read_386issue I've attached a patch.
WARING: It's only compile time tested. :)Please apply both and retry.
Forget the patch.
We need something better.
I'm working on it.
Signature · 13 lines
Thanks, //richard ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Martin,
Quoted 8 lines · Martin Walch
Hello UML maintainers,
I have run into a problem making a uml kernel for SUBARCH=i386 with support for XFS. This looks like a regression. Can you please take a look at
https://bugzilla.kernel.org/show_bug.cgi?id=32812
Thank you.
Can you please test the attached patch?
Don't forget to apply http://git.kernel.org/linus/084189a in case you're not using Linus' tree.
BTW: Please configure your kernel for a CPU newer than i486, Pentium Pro would be a good choice. :-)
Signature · 2 lines
Thanks, //richard
From 1eecac7ca6fb3824478c5ceb4929e0892b180115 Mon Sep 17 00:00:00 2001
From: Richard Weinberger <[email protected]>
Date: Sat, 16 Apr 2011 23:43:47 +0200
Subject: [PATCH] um: Add support for 64 bit atomic operations
This adds support for 64 bit atomic operations on
32 bit UML systems.
--- arch/um/sys-i386/Makefile | 2 +- arch/um/sys-i386/atomic64_cx8_32.S | 224 ++++++++++++++++++++++++++++++++++++ 2 files changed, 225 insertions(+), 1 deletions(-) create mode 100644 arch/um/sys-i386/atomic64_cx8_32.S
arch/um/sys-i386/Makefile +1 -1
@@ -4,7 +4,7 @@ obj-y = bug.o bugs.o checksum.o delay.o fault.o ksyms.o ldt.o ptrace.o \ ptrace_user.o setjmp.o signal.o stub.o stub_segv.o syscalls.o sysrq.o \ - sys_call_table.o tls.o + sys_call_table.o tls.o atomic64_cx8_32.o obj-$(CONFIG_BINFMT_ELF) += elfcore.o
arch/um/sys-i386/atomic64_cx8_32.S new file +224 -0
224 lines not on this page · raw message
Signature · 1 line
1.6.6.1
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 3 lines
Can you please test the attached patch?
Don't forget to apply http://git.kernel.org/linus/084189a in case you're not using Linus' tree.
Works fine. At least make successfully creates a uml binary and I can create, mount and unmount an xfs file system. Creating and deleting a file also works fine.
I did not do any intensive testing as I am not going to use it now anyway, as hostfs has become the better choice. (Actually, I had already decided against xfs before reporting the bug.)
Quoted 2 lines
BTW: Please configure your kernel for a CPU newer than i486, Pentium Pro would be a good choice. :-)
I never intended to actually use an i486 comaptible build. I will be using "Opteron/Athlon64/Hammer/K8". However, I wonder if there are any problems using i486 besides performance loss. Will this break things?
Signature · 10 lines
------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines · Martin Walch
Quoted 3 lines
Can you please test the attached patch?
Don't forget to apply http://git.kernel.org/linus/084189a in case you're not using Linus' tree.Works fine. At least make successfully creates a uml binary and I can create, mount and unmount an xfs file system. Creating and deleting a file also works fine.
Fine.
Quoted 3 lines
I never intended to actually use an i486 comaptible build. I will be using "Opteron/Athlon64/Hammer/K8". However, I wonder if there are any problems using i486 besides performance loss. Will this break things?
XFS needs atomic 64 bit operations. To emulate them on 32 bit systems we need the cmpxchg8b instruction.
Old CPUs don't offer this instruction. So we would have to emulate cmpxchg8b too.
For now UML does not have a cmpxchg8b emulation because this would be quite hacky
to realize it in pure user mode.
--
Thanks,
//richard
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel