UML Status Report . Richard Weinberger sigma star gmbh . . . . - - PowerPoint PPT Presentation

uml status report
SMART_READER_LITE
LIVE PREVIEW

UML Status Report . Richard Weinberger sigma star gmbh . . . . - - PowerPoint PPT Presentation

Overview Build and use UML Internals Limitations Ongoing work . UML Status Report . Richard Weinberger sigma star gmbh . . . . . . . . . . . . . . . . . . . . .. . .. . .. . .. . .. . .. . .. . .. . ..


slide-1
SLIDE 1

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. .

UML Status Report

Richard Weinberger sigma star gmbh

Richard Weinberger sigma star gmbh UML Status Report

slide-2
SLIDE 2

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Table of contents

.

1 Overview

. .

2 Build and use UML

. .

3 Internals

. .

4 Limitations

.

5 Ongoing work

Richard Weinberger sigma star gmbh UML Status Report

slide-3
SLIDE 3

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . History

Initial name Linux on Linux (LoL) User Mode Linux (UML) One of the very first virtualization technologies for Linux Linux is very portable UML is a port of Linux to its own userspace ABI

Richard Weinberger sigma star gmbh UML Status Report

slide-4
SLIDE 4

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . History

Created by Jeff Dike Existed for a long time as out-of-tree patch Went mainline around 2.5

Richard Weinberger sigma star gmbh UML Status Report

slide-5
SLIDE 5

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . What is it?

Basically a systemcall emulator qemu vs. uml vs. qemu-kvm Can run as non-root!

Richard Weinberger sigma star gmbh UML Status Report

slide-6
SLIDE 6

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Usecase

KVM needs a rather new computer qemu (without KVM) is very slow LXC a very young technology UML fills this gap

Richard Weinberger sigma star gmbh UML Status Report

slide-7
SLIDE 7

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Building

make defconfig ARCH=um SUBARCH=i386 make defconfig ARCH=um SUBARCH=x86 64 Don’t forget ARCH=um!

Richard Weinberger sigma star gmbh UML Status Report

slide-8
SLIDE 8

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Running

./linux –help ./linux rootfstype=hostfs init=/bin/sh ./linux ubda=Debian-XY.img mem=512M

Richard Weinberger sigma star gmbh UML Status Report

slide-9
SLIDE 9

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Basics for a Linux port

Interrupts Timer Traps Memory

Richard Weinberger sigma star gmbh UML Status Report

slide-10
SLIDE 10

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Interrupts

Signals SIGIO

Richard Weinberger sigma star gmbh UML Status Report

slide-11
SLIDE 11

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Timer tick in UML

setitimer SIGVTALRM Even supports NOHZ :)

Richard Weinberger sigma star gmbh UML Status Report

slide-12
SLIDE 12

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Traps

PTRACE SYSCALL PTRACE SYSEMU

Richard Weinberger sigma star gmbh UML Status Report

slide-13
SLIDE 13

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Memory

Main memory is a mapped file Page faults via SIGSEGV

Richard Weinberger sigma star gmbh UML Status Report

slide-14
SLIDE 14

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . UML modes

TT SKAS3 SKAS4 SKAS0

Richard Weinberger sigma star gmbh UML Status Report

slide-15
SLIDE 15

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . SKAS0

Every process within UML has a brother on the host side UML controls processes on host side via stub pages SIGSEGV for page faults

Richard Weinberger sigma star gmbh UML Status Report

slide-16
SLIDE 16

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Limitations

x86 only On x86 64 no ia32 No SMP Slow

Richard Weinberger sigma star gmbh UML Status Report

slide-17
SLIDE 17

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Ongoing work

ftrace support SMP epoll Interrupt chip

Richard Weinberger sigma star gmbh UML Status Report

slide-18
SLIDE 18

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Volunteers wanted

Test UML, run recent kernels Help implementing new features Shape up existing code Who can create us a fancy webseite? (seriously) http://user-mode-linux.sourceforge.net/

Richard Weinberger sigma star gmbh UML Status Report

slide-19
SLIDE 19

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . Ideas

Better user mode networking using slirp (easy) Framebuffer using X11 (easy) kASLR (moderate) CONFIG VT (moderate) PCI support using VFIO (hard) ARM port (hard)

Richard Weinberger sigma star gmbh UML Status Report

slide-20
SLIDE 20

. .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. . . .. .

Overview Build and use UML Internals Limitations Ongoing work

. . FIN

Questions?

Richard Weinberger sigma star gmbh UML Status Report