lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160425105243.GA28454@pd.tnic>
Date:	Mon, 25 Apr 2016 12:52:44 +0200
From:	Borislav Petkov <bp@...en8.de>
To:	Andrey Utkin <andrey_utkin@...tmail.com>
Cc:	Paolo Bonzini <pbonzini@...hat.com>, linux-kernel@...r.kernel.org,
	x86@...nel.org, Thomas Gleixner <tglx@...utronix.de>,
	Ingo Molnar <mingo@...hat.com>,
	"H. Peter Anvin" <hpa@...or.com>
Subject: Re: [PATCH v2] Enhance kvmconfig

On Mon, Apr 25, 2016 at 03:49:04AM +0300, Andrey Utkin wrote:
> IMO "bare minimum" term makes sense if it boots.

Boots where? On every system? You know that won't fly.

This bare minimum is trying to be of help only. No one says you should
be able to boot *every* guest kernel config with this.

For example, if your guest root fs image is ext4, then you must enable
ext4 support in the guest kernel. But that doesn't mean we need to carry
everything in kvmconfig. If we did, then we don't need it at all -
people can simply do "make allmodconfig" and have it all.

The idea of kvmconfig is to OR in the bare minimum of options into your
current .config and thus make the kernel more useful when booted as a
kvm guest - you'd still need to go and adjust it to your particular qemu
invocation.

In any case, here's how I'm booting my guests. You can see, for example,
that I'm using rtl8139 nic in the guest and for that I have it enabled
in my guest kernel .config.

$ qemu-system-x86_64
-enable-kvm
-gdb tcp::1234
-cpu Opteron_G5
-m 2048
-hda /home/boris/kvm/debian/sid-x86_64.img
-boot menu=off,order=c
-localtime
-net nic,model=rtl8139,macaddr=12:34:56:78:12:34
-net user,hostfwd=tcp::1235-:22
-usbdevice tablet
-kernel /home/boris/kernel/linux-2.6/arch/x86/boot/bzImage
-append "root=/dev/sda1 resume=/dev/sdb1 debug ignore_loglevel log_buf_len=16M earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 "
-monitor pty
-soundhw hda
-serial file:/home/boris/kvm/test-x86_64-1235.log
-snapshot
-smp 8
-virtfs local,path=/tmp,mount_tag=tmp,security_model=none

HTH.

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ