Re: [PATCH 1/3] Target-microblaze: Remove unnecessary variable

2015-10-05 Thread Michael Tokarev
05.10.2015 08:18, Markus Armbruster wrote: > Michael Tokarev <m...@tls.msk.ru> writes: > >> 25.09.2015 11:37, Shraddha Barke wrote: >>> Compress lines and remove the variable . >> >> Applied to -trivial, removing this piece of commit message: >> &

Re: [PATCH 1/3] Target-microblaze: Remove unnecessary variable

2015-10-03 Thread Michael Tokarev
25.09.2015 11:37, Shraddha Barke wrote: > Compress lines and remove the variable . Applied to -trivial, removing this piece of commit message: --- > Change made using Coccinelle script > > @@ > expression ret; > @@ > - if (ret) return ret; > - return 0; > + return ret; > @@ > local idexpression

Re: [PATCH 3/3] Target-ppc: Remove unnecessary variable

2015-10-03 Thread Michael Tokarev
25.09.2015 11:37, Shraddha Barke wrote: > Compress lines and remove the variable. Applied to -trivial, removing this piece of commit message: --- > Change made using Coccinelle script > > @@ > expression ret; > @@ > - if (ret) return ret; > - return 0; > + return ret; > @@ > local idexpression

Re: x2apic issues with Solaris and Xen guests

2015-04-20 Thread Michael Tokarev
to Michael Tokarev for posting this link) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528077#68 [] Has anyone looked into this? Not yet. Is there a handy reproduction guest image? Or maybe someone would like to start with tracing what the guest and the host do. The second link gives

Re: kvm: zapping shadow pages for mmio generation wraparound

2014-12-20 Thread Michael Tokarev
On Tue, 23 Jul 2013 13:50:21 +0200, Paolo Bonzini wrote: ... Jul 21 00:25:32 ps kernel: kvm: zapping shadow pages for mmio generation wraparound The log message would let us correlate any reports with a new optimization (added in 3.11). We will probably downgrade it to KERN_DEBUG before

Re: KVM: x86: add module parameter to disable periodic kvmclock sync

2014-11-13 Thread Michael Tokarev
13.11.2014 05:44, Marcelo Tosatti wrote: The periodic kvmclock sync can be an undesired source of latencies. Shouldn't this be a per-vm property, not global host property? Maybe it's better to control frequency of syncs (with 0=disabled)? Thanks, /mjt -- To unsubscribe from this list: send the

Re: [Qemu-trivial] [PATCH] target-ppc: kvm: Fix memory overflow issue about strncat()

2014-10-24 Thread Michael Tokarev
On 10/13/2014 06:47 PM, Alexander Graf wrote: On 13.10.14 16:36, Chen Gang wrote: strncat() will append additional '\0' to destination buffer, so need additional 1 byte for it, or may cause memory overflow, just like other area within QEMU have done. Signed-off-by: Chen Gang

Re: [PATCH] arch: x86: kvm: x86.c: Cleaning up uninitialized variables

2014-06-03 Thread Michael Tokarev
03.06.2014 16:04, Paolo Bonzini wrote: Il 01/06/2014 01:05, Rickard Strandqvist ha scritto: There is a risk that the variable will be used without being initialized. This was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist

Re: [RFC PATCH] kvm: Enable -cpu option to hide KVM

2014-06-02 Thread Michael Tokarev
01.06.2014 20:25, Alex Williamson цкщеу: The latest Nvidia driver (337.88) specifically checks for KVM as the hypervisor and reports Code 43 for the driver in a Windows guest when found. Removing or changing the KVM signature is sufficient to allow the driver to load. Hmm.. Why does it do

Re: [RFC PATCH] kvm: Enable -cpu option to hide KVM

2014-06-02 Thread Michael Tokarev
02.06.2014 17:30, Alex Williamson wrote: On Mon, 2014-06-02 at 14:32 +0400, Michael Tokarev wrote: 01.06.2014 20:25, Alex Williamson wrote: The latest Nvidia driver (337.88) specifically checks for KVM as the hypervisor and reports Code 43 for the driver in a Windows guest when found

Re: [Qemu-devel] Massive read only kvm guests when backing file was missing

2014-03-28 Thread Michael Tokarev
27.03.2014 20:14, Alejandro Comisario wrote: Seems like virtio (kvm 1.0) doesnt expose timeout on the guest side (ubuntu 12.04 on host and guest). So, how can i adjust the tinmeout on the guest ? After a bit more talks on IRC yesterday, it turned out that the situation is _much_ more

Re: QEMU P2P migration speed

2014-02-07 Thread Michael Tokarev
07.02.2014 19:32, Paolo Bonzini wrote: Il 07/02/2014 14:07, Andrey Korolyov ha scritto: Ok, I will do, but looks like libvirt version(1.0.2) in not relevant - it meets criteria set by debian packagers Then Debian's qemu packaging it's wrong, QEMU 1.6 or newer should conflict with libvirt

Re: Fwd: Discard is not working

2014-02-07 Thread Michael Tokarev
07.02.2014 04:03, Paolo Bonzini wrote: Michael, can you look at this? Paolo Messaggio originale From: chickenmar...@freenet.de To: kvm@vger.kernel.org Hello, after reading the invitation for some one-off questions without subscribing excuse my disturbing, please.

3.10.25 kernel behaves unstable as a qemu/kvm guest

2013-12-27 Thread Michael Tokarev
Hello. This is just an initial/preliminary heads-up, maybe mis-directed, about a possible issue. I upgraded 2 machines today to 3.10.25, and both shows some.. strangeness within linux guests, which are also running 3.10.25. Revering to 3.10.24 in guests (compiled by the same compiler with the

Re: [PATCH] KVM: PPC: Add devname:kvm aliases for modules

2013-12-09 Thread Michael Tokarev
09.12.2013 19:01, Alexander Graf wrote: [] +++ b/arch/powerpc/kvm/44x.c @@ -231,3 +231,6 @@ static void __exit kvmppc_44x_exit(void) module_init(kvmppc_44x_init); module_exit(kvmppc_44x_exit); +#include linux/miscdevice.h +MODULE_ALIAS_MISCDEV(KVM_MINOR); +MODULE_ALIAS(devname:kvm);

Re: [PATCH] kvm tools: fix boot of guests with more than 4gb of ram

2013-06-24 Thread Michael Tokarev
24.06.2013 05:23, Sasha Levin wrote: queue = p9dev-vqs[vq]; queue-pfn = pfn; - p = guest_flat_to_host(kvm, queue-pfn * page_size); + p = guest_flat_to_host(kvm, (u64)queue-pfn * page_size); Maybe it's worth to use a common

Re: Would a DOS on dovecot running under a VM cause host to crash?

2013-06-21 Thread Michael Tokarev
21.06.2013 02:27, Hugh Davenport wrote: Hey All, I'm just wondering whether this is what caused my server to crash. If some activity in a virtual machine causes the host to crash, it is a serious bug in qemu/kvm which should be identified fixed. Thanks, /mjt -- To unsubscribe from this

Re: Unable to boot from SCSI disk

2013-05-28 Thread Michael Tokarev
28.05.2013 01:25, Michael Tokarev wrote: [] but it is wheezy, which ships with seabios 1.7.0, which does not have scsi boot support. So in order to boot from scsi, you have to use old ,boot=on device property, which has been forward-ported from older qemu-kvm version to 1.1 version used

Re: Unable to boot from SCSI disk

2013-05-28 Thread Michael Tokarev
28.05.2013 12:55, Paolo Bonzini wrote: Il 27/05/2013 23:25, Michael Tokarev ha scritto: [] but it is wheezy, which ships with seabios 1.7.0, which does not have scsi boot support. So in order to boot from scsi, you have to use old ,boot=on device property, which has been forward-ported from

Re: [PATCH] qemu-kvm: fix unmatched RAM alloction/free

2013-05-28 Thread Michael Tokarev
Um, something's wrong with the Date. Care to resend with that fixed? Thanks, /mjt 18.01.2009 02:13, Xudong Hao wrote: mmap is used in qemu_vmalloc function instead of qemu_memalign(commit 7dda5dc8), so it should change qemu_vfree to munmap to fix a unmatched issue. [...] -- To unsubscribe

Re: Unable to boot from SCSI disk

2013-05-27 Thread Michael Tokarev
28.05.2013 00:59, Paolo Bonzini wrote: Thank you Paolo for forwarding this email to me. Il 27/05/2013 22:53, Daniel Guillermo Bareiro ha scritto: Hi all! I'm trying libvirt and virt-manager and I found that if I install a virtual machine with SCSI disks, the installation is done without

Re: Fwd: Booting physically installed Windows while in Arch (AHCI support in OVMF?)

2013-05-06 Thread Michael Tokarev
06.05.2013 00:42, Evert Heylen wrote: Please, any help? I think the easiest way is to convert your existing system from UEFI back to regular bios + MBR. For that, you need to disable UEFI boot in bios and convert GPT to MBR on the HDD. This is because, as you figured, ahci support in OVMF

Re: How to save vcpupin to xml file?

2013-03-16 Thread Michael Tokarev
16.03.2013 22:15, Anthony Acquanita wrote: I keep running vcpupin from the command line and can't seem to find out how to write this out to the XML with doing an virsh edit. [...] You're on a wrong list. Neither KVM nor Qemu has anything to do with virsh or XML. Neither _understand_ xml to

Re: Win2003 disk corruption with kvm-1.0. and virtio

2013-02-13 Thread Michael Tokarev
[Please stop top-posting. Thank you] 13.02.2013 20:03, we...@zackbummfertig.de wrote: there are known problems, WHEN I/O native and cache=writethrough. On I/O native put cache to none otherwise your data can get broken. Check Redhat Pages for that. Which problem is that? And what is

Re: BSoD, HAL.DLL

2013-01-15 Thread Michael Tokarev
14.01.2013 21:40, Sean Kennedy wrote: I continue to get bluescreens on an XP virtual machine running on CentOS 6.3 x86_64 using VirtIO drivers. QEMU: qemu-kvm-0.12.1.2-2.295.el6.x86_64 KERNEL: Linux vmhost1 2.6.32-279.1.1.el6.x86_64 #1 SMP Tue Jul 10 13:47:21 UTC 2012 x86_64 x86_64 x86_64

Re: [Qemu-devel] [PATCH] kvm: Set default accelerator to kvm if the host supports it

2012-10-03 Thread Michael Tokarev
On 02.10.2012 11:46, Markus Armbruster wrote: Daniel P. Berrange berra...@redhat.com writes: IMHO, default to KVM, fallback to TCG is the most friendly default behaviour. Friendly perhaps, generating an infinite series of questions why is my guest slow as molasses? certainly. With a

Re: Error: KVM Guest with virtio network driver loses network connectivity

2012-10-03 Thread Michael Tokarev
On 03.10.2012 14:32, hung -cuncon wrote: Hi all, I setup Host with centos 6.0 - 64bits, Guest with centos5.3 - 64bits (kernel updated), I have installed qemu-kvm-tool

Re: qemu-kvm: remove boot=on|off drive parameter compatibility

2012-10-01 Thread Michael Tokarev
01.10.2012 17:36, Jan Kiszka wrote: On 2012-10-01 15:31, Marcelo Tosatti wrote: Default nic is rtl8139 vs. e1000. Config file (as suggested earlier on this thread). If you need to append -config bla, you can also specify the desired NIC explicitly - I see no value in the former. If we

Re: Can't use USB devices in their designated applications on Windows Vista guest

2012-09-19 Thread Michael Tokarev
On 18.09.2012 09:56, Dirk Heinrichs wrote: Hi, I have a really strange problem using USB devices in a Windows Vista (32bit) guest. After adding a USB device (an Adroid phone or a GPS navigation device) to the guest, Vista starts to install the driver(s) for the new device just as it

Re: Windows slow boot

2012-09-18 Thread Michael Tokarev
On 16.08.2012 14:47, Richard Davies wrote: http://marc.info/?l=qemu-develm=134304194329745 We have been experiencing this problem for a while now too, using qemu-kvm (currently at 1.1.1). Unfortunately, hv_relaxed doesn't seem to fix it. The following command line produces the issue:

Re: [Qemu-devel] [PATCH 4/4] kvm: i386: Add classic PCI device assignment

2012-08-28 Thread Michael Tokarev
On 27.08.2012 22:56, Blue Swirl wrote: [] +static uint32_t slow_bar_readb(void *opaque, target_phys_addr_t addr) +{ +AssignedDevRegion *d = opaque; +uint8_t *in = d-u.r_virtbase + addr; Don't perform arithmetic with void pointers. There are a few places in common qemu code which

Re: /dev/kvm not sufficiently restricted, and in ways I didn't think were possible

2012-08-28 Thread Michael Tokarev
On 28.08.2012 00:11, Henry Cejtin wrote: I'm completely confused about access to /dev/kvm. In particular, it looks like it is too open to access, but in a way that I don't understand. On my machine, /dev/kvm is owned by root.root and mode 660. Here is the output of ls:

Re: [ANNOUNCE] qemu-kvm-1.2.0-rc1

2012-08-25 Thread Michael Tokarev
On 24.08.2012 23:12, Marcelo Tosatti wrote: qemu-kvm-1.2.0-rc1 is now available. This release is based on the upstream qemu 1.2.0-rc1, plus device assignment. Is there a corresponding tag in the git tree? Thanks, /mjt -- To unsubscribe from this list: send the line unsubscribe kvm in the

Re: qemu-kvm 1.1.1 hangs using 100% CPU when using ES1370 emulation

2012-08-24 Thread Michael Tokarev
version: 1.1.1 (Debian package by Michael Tokarev), happened also with 1.1.0 host: Debian wheezy, 3.2.23, x86_64 guest: Debian wheezy, 3.2.23, x86_64 /usr/bin/kvm -S -M pc-1.1 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name mp3 -uuid 25d2b76c-9533-c55a-b5e2

Re: [Qemu-devel] x86, nops settings result in kernel crash

2012-08-21 Thread Michael Tokarev
On 20.08.2012 21:13, Tomas Racek wrote: [] Can we trim the old, large and now not-so-relevant discussion please? ;) I can provide you with more different traces if it can help. But I thought that maybe it will be more useful for you to try it on your own. So I've prepared some minimal debian

Re: KVM-enabled Linux 3.2 won't boot in kvm

2012-08-20 Thread Michael Tokarev
19.08.2012 06:04, Neal Murphy пишет: I've been using KVM for a few years now. I've had little trouble with it. But now it's got me treed. I cannot get a KVM-enabled Linux 3.2.27 kernel to boot in qemu-kvm unless I specify '-no-kvm'. I've used a similarly-built and - configured 2.6.35 kernel

Re: [Qemu-devel] TSC in qem[-kvm] 1.1+ and in-kernel irqchip

2012-08-13 Thread Michael Tokarev
On 13.08.2012 17:07, Jan Kiszka wrote: [] The bisecion leads to this commit: commit 17ee47418e65b1593defb30edbab33ccd47fc1f8 Merge: 13b0496 5d17c0d Author: Jan Kiszka jan.kis...@siemens.com Date: Tue Apr 10 16:26:23 2012 +0200 Merge commit '5d17c0d2df4998598e6002b27b8e47e792899a0f'

Re: [PATCH uq/master] kvm: i8254: Finish time conversion fix

2012-08-13 Thread Michael Tokarev
On 13.08.2012 22:18, Jan Kiszka wrote: 0cdd3d1444 fixed reading back the counter load time from the kernel while assuming the kernel would always update its load time on writing the state. That is only true for channel 1, and so pit_get_channel_info returned wrong output pin states for high

Re: [Qemu-devel] TSC in qem[-kvm] 1.1+ and in-kernel irqchip

2012-08-12 Thread Michael Tokarev
On 12.08.2012 12:10, Gleb Natapov wrote: [] Any chance to bisect it? The bisecion leads to this commit: commit 17ee47418e65b1593defb30edbab33ccd47fc1f8 Merge: 13b0496 5d17c0d Author: Jan Kiszka jan.kis...@siemens.com Date: Tue Apr 10 16:26:23 2012 +0200 Merge commit

Re: [Qemu-devel] TSC in qem[-kvm] 1.1+ and in-kernel irqchip

2012-08-10 Thread Michael Tokarev
On 10.08.2012 11:33, Gleb Natapov wrote: On Thu, Aug 09, 2012 at 10:27:43PM +0400, Michael Tokarev wrote: As a follow-up to the patch tsc: use kvmclock for calibration. There's another problem reported by several users. The sympthom is that grub does not show boot menu, it boots default

TSC in qem[-kvm] 1.1+ and in-kernel irqchip

2012-08-09 Thread Michael Tokarev
As a follow-up to the patch tsc: use kvmclock for calibration. There's another problem reported by several users. The sympthom is that grub does not show boot menu, it boots default entry right away without any pause. After quite some debugging it turned out to be TSC issue. Grub uses tsc for

Re: TSC in qem[-kvm] 1.1+ and in-kernel irqchip

2012-08-09 Thread Michael Tokarev
On 10.08.2012 00:47, Marcelo Tosatti wrote: [] calibrate_tsc (void) { /* First calibrate the TSC rate (relative, not absolute time). */ grub_uint64_t start_tsc; grub_uint64_t end_tsc; start_tsc = grub_get_tsc (); grub_pit_wait (0x); end_tsc = grub_get_tsc ();

linux guest + nfsserver + virtio + vhost + vnet_hdr = tons of OOMs

2012-07-12 Thread Michael Tokarev
I were debugging an unrelated issue today (in nfs server), and noticed that the above combination, when doing lots of read requests from an nfs client, quickly reaches OOM condition which gets triggered very often. I used a 512-Mb guest with 32bit kernel inside. By doing a cp of a large

Re: [Qemu-devel] [PATCH] kvm: align ram_size to page boundary

2012-07-06 Thread Michael Tokarev
On 17.06.2012 17:14, Avi Kivity wrote: On 06/17/2012 04:06 PM, Blue Swirl wrote: strtosz() is much too general. We could do it in vl.c without trouble. However, it takes away our ability to emulate a 640k should be enough for everyone machine. Then how about current max of target page

Re: [ANNOUNCE] qemu-kvm-1.1.0

2012-07-03 Thread Michael Tokarev
On 03.07.2012 03:32, Marcelo Tosatti wrote: qemu-kvm-1.1.0 is now available. This release is based on the upstream qemu 1.1.0, plus kvm-specific enhancements. Please see the original QEMU 1.1.0 release announcement [1] for details. Why the recent fixes from Jan hasn't been applied? I mean

Re: [bug 1.1] -M pc-1.0 + vhost = SIGSEGV

2012-07-02 Thread Michael Tokarev
02.07.2012 11:20, Jan Kiszka wrote: On 2012-07-01 17:06, Michael Tokarev wrote: When running current git version of qemu-kvm with -M pc-1.0 Just to clarify: you are talking about stable-1.1 git, not master. Yes, as the $Subject (partially) says. [] So it looks like msix isn't initialized

[bug 1.1] -M pc-1.0 + vhost = SIGSEGV

2012-07-01 Thread Michael Tokarev
When running current git version of qemu-kvm with -M pc-1.0 and with vhost-net enabled, it crashes with SIGSEGV right when linux guest loads a virtio-net module. I haven't tried to debug this deeply. The first result is: (gdb) ru -M pc-1.0 -nodefconfig -nodefaults -rtc base=utc -device

Re: [bug 1.1] -M pc-1.0 + vhost = SIGSEGV

2012-07-01 Thread Michael Tokarev
On 01.07.2012 19:06, Michael Tokarev wrote: When running current git version of qemu-kvm with -M pc-1.0 and with vhost-net enabled, it crashes with SIGSEGV right when linux guest loads a virtio-net module. And when this happens when a persistent tap device is used, that tap device becomes

KVM internal error with some amounts of guest memory

2012-06-14 Thread Michael Tokarev
Now that's something else. Reported by a debian user, but trivially reproducible. $ kvm -m 1.4g KVM internal error. Suberror: 1 emulation failure EAX=000e3c54 EBX= ECX= EDX=0cfd ESI= EDI= EBP= ESP=6fe8 EIP=000f309b EFL=0016 [AP-] CPL=0 II=0

Re: KVM internal error with some amounts of guest memory

2012-06-14 Thread Michael Tokarev
On 14.06.2012 23:22, Michael Tokarev wrote: Now that's something else. Reported by a debian user, but trivially reproducible. $ kvm -m 1.4g KVM internal error. Suberror: 1 emulation failure EAX=000e3c54 EBX= ECX= EDX=0cfd ESI= EDI= EBP= ESP

Re: KVM internal error with some amounts of guest memory

2012-06-14 Thread Michael Tokarev
On 14.06.2012 23:45, Michael Tokarev wrote: On 14.06.2012 23:22, Michael Tokarev wrote: Now that's something else. Reported by a debian user, but trivially reproducible. $ kvm -m 1.4g KVM internal error. Suberror: 1 emulation failure EAX=000e3c54 EBX= ECX= EDX=0cfd

1.1 release?

2012-06-07 Thread Michael Tokarev
Are there any issues with 1.1 release of qemu-kvm? The RCs were followed qemu RCs quite closely, but the final 1.1 is still not released, anything wrong with it? Thanks! /mjt -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org

Re: 1.1 release?

2012-06-07 Thread Michael Tokarev
On 07.06.2012 11:13, Avi Kivity wrote: On 06/07/2012 10:10 AM, Michael Tokarev wrote: Are there any issues with 1.1 release of qemu-kvm? [] Yes, there is a regression with IDE PIO that can hang a guest on boot. Any pointers on this? I were testing 1.1-rc with various guests and it all works

Re: Virtio network performance on Debian

2012-04-17 Thread Michael Tokarev
On 12.04.2012 11:42, Hans-Kristian Bakke wrote: Hi For some reason I am not able to get good network performance using virtio/vhost-net on Debian KVM host (perhaps also valid for Ubuntu hosts then). The issue has been identified, after Hans-Kristian gave me access to his machine and I did

Re: Virtio network performance on Debian

2012-04-16 Thread Michael Tokarev
On 16.04.2012 13:01, Stefan Pietsch wrote: On 12.04.2012 09:42, Hans-Kristian Bakke wrote: Hi For some reason I am not able to get good network performance using virtio/vhost-net on Debian KVM host (perhaps also valid for Ubuntu hosts then). Disc IO is very good and the guests feels snappy

Re: [PATCH] kvm-amd: Auto-load on CPUs with SVM.

2012-03-29 Thread Michael Tokarev
On 28.03.2012 22:32, Josh Triplett wrote: Enable x86 feature-based autoloading for the kvm-amd module on CPUs with X86_FEATURE_SVM. Signed-off-by: Josh Triplett j...@joshtriplett.org It appears to work fine on my amd boxen. The only problem is that I've no idea when it will be possible to

Re: Use getaddrinfo for migration

2012-03-02 Thread Michael Tokarev
Not a reply to the patch but a general observation. I noticed that the tcp migration uses gethostname (or getaddrinfo after this patch) from the main thread - is it really the way to go? Note that DNS query which is done may block for a large amount of time. Is it really safe in this context?

Re: Win 2000 driver for -vga std ?

2012-02-13 Thread Michael Tokarev
On 14.02.2012 05:42, Reeted wrote: Hello, subject says it all The driver for windows 2000 for the -vga std should be the Anapa VBE Vesa VBEMP if I understand correctly but I cannot on earth find this executable http://navozhdeniye.narod.ru/vbemp.htm all links for download all over the world

Re: Unable to start a guest using qemu-kvm directly

2012-01-29 Thread Michael Tokarev
On 29.01.2012 19:17, Vinod Chegu wrote: Dear All, I am using RHEL 6.2 + KVM on a X86_64 server. I have been able to create Linux guests using virt-install (using virto and/or pci passthrough) and am able to manage the guests using virsh and/or virt-manager for doing some basic stuff.

Re: qemu-kvm: Inconsistent vgabios reference

2012-01-15 Thread Michael Tokarev
On 15.01.2012 16:53, Avi Kivity wrote: On 01/15/2012 02:50 PM, Jan Kiszka wrote: [] extboot is history since 2a06024dc1b1e27b1be0266379af397e61b4a9ad Yeah, but it isn't history for people running older qemu-kvm's. We don't need extboot itself, but we do need to keep the boot option (as

Re: qemu-kvm: Inconsistent vgabios reference

2012-01-15 Thread Michael Tokarev
On 15.01.2012 17:18, Avi Kivity wrote: On 01/15/2012 03:10 PM, Michael Tokarev wrote: [] FWIW, I had to patch extboot back in for debian qemu-kvm 1.0, because of lack of boot support from scsi (and no alternative), and because many people's scripts who used boot= broke. I thought it is better

Re: [PATCH] vhost-net: add module alias

2012-01-11 Thread Michael Tokarev
On 11.01.2012 20:58, Stephen Hemminger wrote: On Wed, 11 Jan 2012 11:07:47 +0400 Michael Tokarev m...@tls.msk.ru wrote: On 11.01.2012 08:54, Stephen Hemminger wrote: By adding the a module alias, programs (or users) won't have to explicitly call modprobe. Vhost-net will always be available

Re: [PATCH] vhost-net: add module alias

2012-01-10 Thread Michael Tokarev
On 11.01.2012 08:54, Stephen Hemminger wrote: By adding the a module alias, programs (or users) won't have to explicitly call modprobe. Vhost-net will always be available if built into the kernel. It does require assigning a permanent minor number for depmod to work. Choose one next to TUN

Re: [Qemu-devel] winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-07 Thread Michael Tokarev
On 07.12.2011 13:02, Kevin Wolf wrote: Am 06.12.2011 19:21, schrieb Jan Kiszka: [] For the 0.15 .. 1.0 change, the first commit which restores the (broken in 0.15) functionality is this one: commit 86fbf97ceb4a9c46a609dd4ae053ba4262b68fe8 Author: Jan Kiszka jan.kis...@siemens.com Date:

Re: winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-06 Thread Michael Tokarev
On 06.12.2011 14:32, Avi Kivity wrote: On 12/05/2011 10:19 PM, Michael Tokarev wrote: On 05.12.2011 17:28, Avi Kivity wrote: [] I haven't debugged further yet, -- because it were not easy to find out what was causing the regression and how to reproduce it, and also because I don't think

Re: winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-06 Thread Michael Tokarev
On 06.12.2011 16:27, Michael S. Tsirkin wrote: On Tue, Dec 06, 2011 at 03:02:49PM +0400, Michael Tokarev wrote: [] And after applying Avi's instructions here's the real bisect result: ab431c283e7055bcd6fb622f212bb29e84a6a134 is the first bad commit commit

Re: [Qemu-devel] winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-06 Thread Michael Tokarev
[Added Jan Kiszka to Cc] On 06.12.2011 18:45, Michael Tokarev wrote: [complete thread: http://thread.gmane.org/gmane.comp.emulators.kvm.devel/82705] More data points (all against qemu-kvm-0.15.0). First, as Avi pointed out, this patch references PIC which is used by standardPC HAL

Re: winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-06 Thread Michael Tokarev
On 06.12.2011 20:38, Jan Kiszka wrote: On 2011-12-06 17:29, Michael Tokarev wrote: [] It appears there are two issues here, one is fixed by 09de0f469c3c2a277c7874f6c60992c8b94719a9 and is 32bit-only, and another bisect leads to this commit: Or 3... :) commit

Re: winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-06 Thread Michael Tokarev
On 06.12.2011 20:57, Michael Tokarev wrote: On 06.12.2011 20:38, Jan Kiszka wrote: On 2011-12-06 17:29, Michael Tokarev wrote: [] It appears there are two issues here, one is fixed by 09de0f469c3c2a277c7874f6c60992c8b94719a9 and is 32bit-only, and another bisect leads to this commit: Or 3

Re: winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-06 Thread Michael Tokarev
On 06.12.2011 22:21, Jan Kiszka wrote: [] For the 0.15 .. 1.0 change, the first commit which restores the (broken in 0.15) functionality is this one: commit 86fbf97ceb4a9c46a609dd4ae053ba4262b68fe8 Author: Jan Kiszka jan.kis...@siemens.com Date: Fri Oct 7 09:19:45 2011 +0200 i8259:

Re: winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-06 Thread Michael Tokarev
[Removed some people from the Cc list] On 06.12.2011 22:45, Michael Tokarev wrote: [] git://git.kiszka.org/qemu-kvm.git queues/kvm-irqchip This tree does not boot for me at all (on regular x86-64 setup) - it stays in bios after Booting from hard disk with 100% CPU usage. This happens since

Re: [Qemu-devel] winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-06 Thread Michael Tokarev
On 07.12.2011 01:12, Jan Kiszka wrote: On 2011-12-06 21:58, Jan Kiszka wrote: [] How embarrassing. Messed something up, maybe during rebase, and forgot to retest non-irqchip mode. Will fix and repost. Was even worse, a simple -ENOTTESTED case. Pushed an update at the same location. Ok,

winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-05 Thread Michael Tokarev
As it turned out, a windowsXP machine does not work in qemu-kvm = 0.15 (it loses network and USB entirely) if it is using Standard PC HAL. In 0.14 it worked fine, but not in 0.14 (I haven't tried any in-between versions yet). There are several HAL types available in winXP: these are Uniprocessor

Re: winXP Standard PC HAL and qemu-kvm = 0.15

2011-12-05 Thread Michael Tokarev
On 05.12.2011 17:28, Avi Kivity wrote: [] I haven't debugged further yet, -- because it were not easy to find out what was causing the regression and how to reproduce it, and also because I don't think it is the right HAL for qemu-kvm guest anyway. It's not, but the regression indicates we

Re: What are the rules for hyperthreaded CPUs?

2011-12-04 Thread Michael Tokarev
On 05.12.2011 05:26, Todd And Margo Chester wrote: Hi All, My host has an i7-960 processor (4 cores, 8 hypterthreaded cores.) /proc/cpuinfo on my host shows 8 processors. On my Fedora Core 16 guest, /proc/cpuinfo shows 4 processors. Question: what is the maximum number of processors I can

Re: cannot create VM with image on zfs filesystem (zfsonlinux)

2011-11-07 Thread Michael Tokarev
On 07.11.2011 17:57, Peter Lees wrote: when trying to create a VM using a RAW image on a zfs filesystem, i get an invalid argument error. [] qemu: could not open disk image /space/vm_store/elveros_001.raw: Invalid argument Please run qemu under strace to show what exactly it is doing. /mjt

Re: virtio localdisk performance

2011-10-13 Thread Michael Tokarev
On 13.10.2011 13:05, benoit ROUSSELLE wrote: Hello, Can someone running with virtio tell me if this is normal to have such a difference with dd between host and guest machine ? host dd is 500MB/s guest dd is 150MB/s All other questions are optionnal for now :D Well, one question is

Re: KVM got slow after adding more physical memory to host - SOLVED

2011-09-08 Thread Michael Tokarev
On 06.09.2011 23:22, Nikola Ciprich wrote: Hello guys, thanks to both of You for Your replies. The problem is solved, exactly as Avi said, the DMA in windows got somehow disabled. So this certainly was not related to adding the memory... anyways, note for further generations: in windows

0.15: is glib actually needed?

2011-08-16 Thread Michael Tokarev
Each time I build qemu-kvm, my build script complains that it is needlessly linked against libglib-2.0 without using any symbols from that library. So is glib really needed for qemu-kvm? How it's different from qemu-0.15? Thanks, /mjt -- To unsubscribe from this list: send the line unsubscribe

Re: network boot always enabled with 0.15.0

2011-08-11 Thread Michael Tokarev
11.08.2011 17:59, Gleb Natapov wrote: On Thu, Aug 11, 2011 at 01:57:04PM +, Dietmar Maurer wrote: [] Another possibility to disable network boot would be to avoid loading the pxe-XXX.rom network boot ROMs. Or is that a bad idea? Ah yeah. Don't see anything bad if you do not what to boot

Re: [PATCH] init: Support mounting devices from kernel command line

2011-07-18 Thread Michael Tokarev
18.07.2011 15:55, Pekka Enberg wrote: On Mon, Jul 18, 2011 at 12:06 PM, Sasha Levin levinsasha...@gmail.com wrote: This patch adds support to mounting devices using a kernel parameter. Such feature is usefull for virtual guests. It allows easily automating mounts without having to change the

Re: guest suspend/resume virtio: vring errors

2011-07-09 Thread Michael Tokarev
09.07.2011 13:17, Gleb Natapov wrote: On Fri, Jul 08, 2011 at 11:02:54PM +0400, Michael Tokarev wrote: I tried suspend/resume cycle for a linux guest today, with 100% failure result. There are 2 Good. It works as expect :) Linux virtio drivers do not support PM. This means that neither

Re: guest suspend/resume virtio: vring errors

2011-07-09 Thread Michael Tokarev
09.07.2011 13:55, Gleb Natapov wrote: On Sat, Jul 09, 2011 at 01:47:25PM +0400, Michael Tokarev wrote: 09.07.2011 13:17, Gleb Natapov wrote: This means that neither in-guest suspend/resume nor qemu-kvm migrate-to-file (which fails for a different reason I'm trying to debug now) works. Which

Re: guest suspend/resume virtio: vring errors

2011-07-09 Thread Michael Tokarev
09.07.2011 14:36, Gleb Natapov wrote: On Sat, Jul 09, 2011 at 02:09:46PM +0400, Michael Tokarev wrote: Heh. Is this S4 or S3 suspend resume? Looks like recent breakage. The only knows problem to me is in win7/2008 S3 resume + net. How can I know if it's S3 or S4? And I can't say it's recent

guest suspend/resume virtio: vring errors

2011-07-08 Thread Michael Tokarev
I tried suspend/resume cycle for a linux guest today, with 100% failure result. There are 2 possible scenarious after resume (you need pretty recent guest kernel for it to work at all, earlier kernels, incl. early 2.6.32, just stops somewhere at the start of suspend cycle, but 2.6.32.42 and

[heads-up] bridge in kernel 3.0~ and dhcp from kvm guest on tap device

2011-07-07 Thread Michael Tokarev
The combination in $subject apparently stopped working -- I'm running 3.0-rc6 kernel on host where it doesn't work. The setup is -- a bridge, br0, to which host eth0 and guest tap devices are connected. When KVM guest boots, it tries to send DHCP requests to its ethernet device (it does not

Re: kvm monitor socket - connection refused

2011-06-29 Thread Michael Tokarev
29.06.2011 19:20, Iordan Iordanov wrote: On 06/28/11 18:29, Michael Tokarev wrote: The process listening on this socket no longer exist, it finished. With this command line it should stay in foreground till finished (there's no -daemonize etc), so you should see error messages if any

Re: kvm monitor socket - connection refused

2011-06-28 Thread Michael Tokarev
28.06.2011 23:20, Iordan Iordanov wrote: Hello, We are using KVM on Debian Squeeze (QEMU 0.12.5). Yesterday, I started a virtual machine and let it run overnight. I don't recall doing anything out of the ordinary to it. This morning, I wanted to issue some commands to it through the

Re: 2.6.32 guest with paravirt clock enabled hangs on 2.6.37.6 host (w qemu-kvm-0.13.0)

2011-05-08 Thread Michael Tokarev
08.05.2011 22:33, Nikola Ciprich wrote: Hello everyboy, while installing new virt machine today, I noticed that 2.6.32 x86_64 SMP guests are hanging if they have paravirt-clock enabled... There were about 10 bugfixes pushed to 2.6.32.y stable series, some of them were for kvm-clock, and some

Re: update from 0.12.5 to 0.14 goes headless

2011-05-01 Thread Michael Tokarev
30.04.2011 16:24, Jerry Geis wrote: After updating when I start up no I am headless. How do I get headed back by default? my command is: qemu-system-x86_64 -net nic,model=rtl8139 -net user -hda $1 -no-acpi -m 2048 -usb $2 $3 $4 $5 $6 -vga std This works for me just fine with 0.14 - it

Re: [PATCH v2 9/9] qemu-kvm: hpet: Add MSI support for in-kernel irqchip mode

2011-04-26 Thread Michael Tokarev
26.04.2011 17:19, Jan Kiszka wrote: hw/hpet.c | 71 - +static int modifying_bit(uint64_t old, uint64_t new, uint64_t mask) +{ +return (old ^ new) mask; +} Such constructs always look suspicious. I'm not even sure anymore

[PATCH] fix long-standing crash in 32bit migration

2011-04-26 Thread Michael Tokarev
-by: Michael Tokarev m...@tls.msk.ru CC: Bruce Rogers brog...@novell.com --- kvm-all.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 7e407f0..3e75e9e 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -382,7 +382,19 @@ static int

Re: openbsd system_powerdown: KVM internal error. Suberror: 1

2011-03-21 Thread Michael Tokarev
21.03.2011 12:43, Avi Kivity wrote: On 03/17/2011 10:18 PM, Michael Tokarev wrote: [] 47965.428791: kvm_exit: reason npf rip 0xd020203a 47965.428791: kvm_page_fault: address bfff0 error_code 4 47965.428792: kvm_emulate_insn: 0:d020203a: 5a (prot32) 47965.428792: kvm_mmio: mmio unsatisfied

Re: KVM lock contention on 48 core AMD machine

2011-03-21 Thread Michael Tokarev
21.03.2011 20:12, Eric Dumazet wrote: Le lundi 21 mars 2011 à 19:02 +0200, Avi Kivity a écrit : Any ideas on how to fix it? We could pre-allocate IDs and batch them in per-cpu caches, but it seems like a lot of work. Hmm, I dont know what syscalls kvm do, but even a timer_gettime() has

Re: openbsd system_powerdown: KVM internal error. Suberror: 1

2011-03-17 Thread Michael Tokarev
17.03.2011 20:52, Marcelo Tosatti wrote: [] iret emulation is only partially implemented. Why is iret faulting in the first place i don't know. Can you enable tracing with echo kvm /$debugfs/tracing/set_event And save the tail of the log, including events at $RIP? Something like the one

Re: *insane* amount of host_state_reloads for openbsd guest in 0.14

2011-03-16 Thread Michael Tokarev
16.03.2011 22:48, Marcelo Tosatti wrote: On Fri, Mar 11, 2011 at 03:02:33PM +0300, Michael Tokarev wrote: I tried Openbsd 4.8 in kvm today and immediately noticed that it is running _very_ slow, boot takes several minutes to complete to the login: prompt. After investigating I found that kvm

Re: openbsd system_powerdown: KVM internal error. Suberror: 1

2011-03-16 Thread Michael Tokarev
16.03.2011 22:44, Marcelo Tosatti wrote: On Fri, Mar 11, 2011 at 02:54:00PM +0300, Michael Tokarev wrote: Hello. I installed an openbsd 4.8 image today to play with, and noticed that when issuing system_powerdown in kvm monitor, in about 5 seconds, qemu-kvm spews this message in a tight

openbsd system_powerdown: KVM internal error. Suberror: 1

2011-03-11 Thread Michael Tokarev
Hello. I installed an openbsd 4.8 image today to play with, and noticed that when issuing system_powerdown in kvm monitor, in about 5 seconds, qemu-kvm spews this message in a tight loop: KVM internal error. Suberror: 1 emulation failure KVM internal error. Suberror: 1 emulation failure

*insane* amount of host_state_reloads for openbsd guest in 0.14

2011-03-11 Thread Michael Tokarev
I tried Openbsd 4.8 in kvm today and immediately noticed that it is running _very_ slow, boot takes several minutes to complete to the login: prompt. After investigating I found that kvm does really insane amount of host_state_reloads. Here are typical kvm_stats: During bootup while

FreeBSD boot hangs on qemu-kvm on AMD host

2011-03-09 Thread Michael Tokarev
Hello. Dominik Klein (Cc'd) reported on irc that current FreeBSD release hangs at boot in qemu-kvm. It is trivially verifiable by d/loading the bootonly FreeBSD 8.2 CD image from ftp.freebsd.org and running kvm -cdrom FreeBSD-8.2-RELEASE-amd64-bootonly.iso. The guest unpacks kernel, draws a

  1   2   3   4   >