Re: [kvm-devel] initiating linux guest shutdown from host

2008-04-23 Thread Luca Tettamanti
shut down the machine. If the ACPI daemon is not running in the guest then the event is lost... Luca - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still

Re: [kvm-devel] Some FAQ questions

2008-04-22 Thread Luca Tettamanti
-dispatches the requests (at least when using QEMU IDE) and the host can reschedule them at will. Luca - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time

Re: [kvm-devel] [PATCH] Make virtio devices multi-function

2008-04-22 Thread Luca Tettamanti
) + devfn = -1; +else + devfn++; This code look strange... devfn should be passed to virtio_init_pci by virtio-{net,blk} init functions, no? Luca - This SF.net email is sponsored by the 2008 JavaOne(SM

Re: [kvm-devel] [kvm-ppc-devel] Top level kvm-userspace directory getting crowded ... need new dir for qemu dependencies

2008-03-02 Thread Luca Barbato
patches to cleanup that mess. lu -- Luca Barbato Gentoo Council Member Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio

Re: [kvm-devel] [PATCH] fix -kernel option

2007-12-07 Thread Luca Tettamanti
can always allocate 300 mbs of junk :) Well, it may not be so bad. We can certainly malloc() those 300mbs. They'll never be touched by anyone so it doesn't actually increase the resident size. Iff the host kernel is configured to overcommit memory. Luca

Re: [kvm-devel] Spawning threads in KVM/QEMU

2007-11-13 Thread Luca Tettamanti
thread id, i.e.: fcntl(fd, F_SETOWN, gettid()); Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX

Re: [kvm-devel] Vista Networking

2007-11-05 Thread Luca Tettamanti
a while ago, I believe that Avi pulled that patch when rebased KVM userspace. Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events

Re: [kvm-devel] no quit on halt for linux 2.6.23 x86 guest

2007-10-29 Thread Luca Tettamanti
on the kernel command line (guest). QEmu doesn't expose a DMI block and Linux guests usually don't enable ACPI since they're unable to check BIOS year (all BIOSes shipped before 2001 are blacklisted because they tend to be very broken). Luca

Re: [kvm-devel] [PATCH v2] Use net-tools as a fallback for iproute2 for bridge configuration

2007-09-25 Thread Luca
work with non-trivial setups (yes, I now that the original script is broken too, but since you are touching it...). See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417151 IMHO it's better to rely on distro-specific scripts to setup the networking. Luca

Re: [kvm-devel] Bug-Report: kvm-44 crashes with -no-kvm with -rc6 host on AMD64 (Stepping F)

2007-09-24 Thread Luca
=ttyS0 to the guest kernel command line. Luca - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

Re: [kvm-devel] [ANNOUNCE] kvm-42 release

2007-09-21 Thread Luca
On 9/21/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca wrote: On 9/20/07, Avi Kivity [EMAIL PROTECTED] wrote: Not much user visible change besides the OpenBSD regression fix. As usual, if you have an issue please try with -no-kvm-irqchip and report. 32 bit Fedora7 on a 32 bit host

Re: [kvm-devel] [ANNOUNCE] kvm-42 release

2007-09-20 Thread Luca
problem with KVM-41 (last known working is KVM-36, I haven't tested anything in between). In both cases -no-kvm-irqchip fixes the problem. Log attached. Luca Linux version 2.6.22.2-42.fc6 ([EMAIL PROTECTED]) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)) #1 SMP Wed Aug 15 11:32:12 EDT 2007 BIOS

Re: [kvm-devel] windows 2003 smp guest

2007-09-20 Thread Luca
/99588 http://en.wikipedia.org/wiki/Architecture_of_Windows_NT Luca - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

Re: [kvm-devel] [ANNOUNCE] kvm-40 release

2007-09-17 Thread Luca
, if i've a 4 core host cpus can i give 4 cpus for both of the 2 guests? Yes, virtual CPUs are mapped to threads. Luca - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http

Re: [kvm-devel] [PATCH] Add support for a basic boot menu to the bios

2007-09-17 Thread Luca
16bit code (e.g. HPA rewrote i386 boot code in plain C)... Luca - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

Re: [kvm-devel] [ANNOUNCE] kvm-38 release

2007-09-14 Thread Luca
. Reboot was improved in kvm-39, but not completely fixed. I'll nail it down in kvm-40 or kvm-41. You can reboot linux guests passing reboot=b on kernel command line. Don't know about win... Luca - This SF.net email

Re: [kvm-devel] KDE4 beta2 LIve CD does not boot

2007-09-13 Thread Luca
on an Intel or an AMD host? Confirmed here with kvm-intel and KVM 39. Invalid opcode (#UD) is probably caused by the boot spash code which may be using big real mode code. Luca - This SF.net email is sponsored by: Microsoft

Re: [kvm-devel] Build of kvm-37 fails

2007-09-10 Thread Luca
to load due to a 64 bit division, see: http://git.kernel.org/?p=linux/kernel/git/avi/kvm.git;a=commitdiff;h=e44af0f4ee99974ce40102e23784bc3cae7f4466 Luca [54716.492596] kvm_intel: Unknown symbol kvm_lapic_reset [54716.492638] kvm_intel: Unknown symbol kvm_migrate_apic_timer [54716.492684] kvm_intel

Re: [kvm-devel] [BUG][PATCH?] kvm: unhandled wrmsr: 0xc0000083

2007-09-09 Thread Luca Tettamanti
Il Sun, Sep 09, 2007 at 03:51:20PM +0300, Avi Kivity ha scritto: Luca Tettamanti wrote: Actually 0xfff2 is in the middle of an instruction. I'm guessing an 'out' instruction triggered the reboot, and skip_emulated_instruction() added 2 to rip. I think you're right; the reset

[kvm-devel] [BUG] GPF on hardware breakpoints (preempt_notifier)

2007-09-09 Thread Luca Tettamanti
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm bogomips: 4274.53 clflush size: 64 Luca -- Quando un uomo porta dei fiori a sua moglie senza

Re: [kvm-devel] [BUG] GPF on hardware breakpoints (preempt_notifier)

2007-09-09 Thread Luca
On 9/9/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca Tettamanti wrote: Hi, while debugging a program with GDB I got a GPF which seems related to KVM. Note that I was *not* using the debugger inside the guest nor on the virtual machine. The target was an unrelated userspace program. Yes

Re: [kvm-devel] [BUG] GPF on hardware breakpoints (preempt_notifier)

2007-09-09 Thread Luca
On 9/9/07, Anthony Liguori [EMAIL PROTECTED] wrote: Luca wrote: On 9/9/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca Tettamanti wrote: Hi, while debugging a program with GDB I got a GPF which seems related to KVM. Note that I was *not* using the debugger inside the guest nor

Re: [kvm-devel] (long) kvm and virt-manager not ready for daily usage

2007-09-08 Thread Luca
on the configuration). Luca - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel

Re: [kvm-devel] Intel-only or AMD Opteron as well?

2007-09-08 Thread Luca
is... does KVM include any optimizations for the AMD virtualization extensions? Yes, load kvm-amd. Luca - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT

Re: [kvm-devel] (long) kvm and virt-manager not ready for daily usage

2007-09-08 Thread Luca
On 9/8/07, Farkas Levente [EMAIL PROTECTED] wrote: Luca wrote: On 9/8/07, Farkas Levente [EMAIL PROTECTED] wrote: kvm is not ready for production use for many reason: it can't reboot which imho a very basic feature, what's more can't even shutdown/poweroff. the centos i386 guest

Re: [kvm-devel] Intel-only or AMD Opteron as well?

2007-09-08 Thread Luca
to virtualization. How can it be faster since it uses paravirtualization (software) instead of direct hardware virtualization features as KVM? See above. Doing software _emulation_ of the guest is slow. A PV guest can coordinate very efficiently with the host. Luca

Re: [kvm-devel] kvm guests are not able to restart

2007-09-03 Thread Luca
On 9/3/07, Avi Kivity [EMAIL PROTECTED] wrote: Farkas Levente wrote: Luca wrote: On 9/3/07, Farkas Levente [EMAIL PROTECTED] wrote: hi, i've got a centos-5 x86_64 kvm-35 host system with one centos-5 i386 and one x86_64 guests. but none of the guest are able to restart. ie. i

Re: [kvm-devel] [BUG][PATCH?] kvm: unhandled wrmsr: 0xc0000083

2007-09-03 Thread Luca Tettamanti
Il Mon, Aug 20, 2007 at 10:58:57AM +0300, Avi Kivity ha scritto: Luca Tettamanti wrote: In order to reactivate the CPU after the reset. When the guest reboots I get an unhandled vm exit: unhandled vm exit: 0x8021 rax rbx rcx rdx

Re: [kvm-devel] [RFC][PATCH 5/6][KVM VIRTIO] Add the network device code

2007-08-29 Thread Luca
. git clone --reference kvm.avi git://kvm.qumranet.com/home/dor/src/virtio/kvm kvm.dor where kvm.avi is you existing kvm git repository. Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files

Re: [kvm-devel] [RFC][PATCH 5/6][KVM VIRTIO] Add the network device code

2007-08-29 Thread Luca
On 8/29/07, Cam Macdonell [EMAIL PROTECTED] wrote: Luca wrote: On 8/29/07, Cam Macdonell [EMAIL PROTECTED] wrote: Dor Laor wrote: The code can now be accessed by git: git://kvm.qumranet.com/home/dor/src/virtio/kvm (kernel) and git://kvm.qumranet.com/home/dor/src/virtio/kvm-userspace

Re: [kvm-devel] [RFC][PATCH 5/6][KVM VIRTIO] Add the network device code

2007-08-28 Thread Luca
maybe the text above is a superset of the GPL and is fine...) Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using

[kvm-devel] [BUG] kvm_lock: inconsistent lock state

2007-08-27 Thread Luca Tettamanti
time - it's used in decache_vcpus_on_cpu (hardware_disable) with interrupts disabled (due to on_each_cpu). In theory it should be harmless since the refcount on /dev/kvm prevents the deadlock. Switching to irq-safe spin_lock_* seems fine, do you want a patch? Luca -- Vorrei morire ucciso dagli

Re: [kvm-devel] Userspace hypercalls?

2007-08-27 Thread Luca
cacheline bouncing. It's possible to use pthread_sigmask() to block the signal on all threads but one. But this would require changing the rest of the emulator; why not just select() the fd in a dedicated thread? Luca

Re: [kvm-devel] KVM-36 compile error on Fedora 7

2007-08-25 Thread Luca Tettamanti
Mark Bidewell ha scritto: On 8/24/07, Luca [EMAIL PROTECTED] wrote: On 8/25/07, Mark Bidewell [EMAIL PROTECTED] wrote: When building kvm-36 with the latest Fedora kernel I get the error: kvmctl.c: In function 'kvm_run': kvmctl.c:1046: error: 'KVM_EXIT_SET_TPR' undeclared (first

Re: [kvm-devel] KVM-36 compile error on Fedora 7

2007-08-25 Thread Luca
-MF ./.kvmctl.d -g -fomit-frame-pointer -Wall -m64 -fno-stack-protector -c -o kvmctl.o The include directory is wrong. Have you used --with-patched-kernel? Luca - This SF.net email is sponsored by: Splunk Inc. Still

Re: [kvm-devel] KVM-36 compile error on Fedora 7

2007-08-25 Thread Luca
*really* want to do that? Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE

Re: [kvm-devel] [Qemu-devel] [PATCH 3/4] Add support for HPET periodic timer.

2007-08-24 Thread Luca
listed twice? Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy

Re: [kvm-devel] serious-looking warning building kvm-36

2007-08-23 Thread Luca
solution to silence the warning is to use always 64bit integers instead of the longs. Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events

Re: [kvm-devel] tun/tap kernel module

2007-08-23 Thread Luca
On 8/23/07, Cam Macdonell [EMAIL PROTECTED] wrote: I'm trying to setup networking on FC6. Where can I find the tun/tap interface? CONFIG_TUN But I'm pretty sure that default FC kernel has the module already built. Try: modprobe tun Luca

Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca
On 8/22/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca wrote: This is QEMU, with dynticks and HPET: % time seconds usecs/call callserrors syscall -- --- --- - - 52.100.002966 0 96840

Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca
On 8/22/07, Luca [EMAIL PROTECTED] wrote: I see a lot of sub ms timer_settime(). Many of them are the result of -expire_time being less than the current qemu_get_clock(). False alarm, this was a bug in the debug code :D Luca

Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca
On 8/22/07, Luca [EMAIL PROTECTED] wrote: On 8/22/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca wrote: This is QEMU, with dynticks and HPET: % time seconds usecs/call callserrors syscall -- --- --- - - 52.10

Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca
to use HPET in one shot mode). Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your

Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-21 Thread Luca Tettamanti
Avi Kivity ha scritto: Luca Tettamanti wrote: At 1000Hz: QEMU hpet5.5% dynticks 11.7% KVM hpet3.4% dynticks7.3% No surprises here, you can see the additional 1k syscalls per second. This is very surprising to me. The 6.2% difference

Re: [kvm-devel] [Qemu-devel] [PATCH 3/4] Add support for HPET periodic timer.

2007-08-21 Thread Luca
On 8/21/07, Matthew Kent [EMAIL PROTECTED] wrote: On Sat, 2007-18-08 at 01:11 +0200, Luca Tettamanti wrote: plain text document attachment (clock-hpet) Linux operates the HPET timer in legacy replacement mode, which means that the periodic interrupt of the CMOS RTC is not delivered (qemu

Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-20 Thread Luca Tettamanti
Il Sun, Aug 19, 2007 at 10:31:26PM +0300, Avi Kivity ha scritto: Luca wrote: On 8/19/07, Luca Tettamanti [EMAIL PROTECTED] wrote: +static uint64_t qemu_next_deadline(void) { +uint64_t nearest_delta_us = ULLONG_MAX; +uint64_t vmdelta_us; Hum, I introduced a bug

Re: [kvm-devel] [Qemu-devel] Re: [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-20 Thread Luca
On 8/20/07, malc [EMAIL PROTECTED] wrote: On Mon, 20 Aug 2007, Luca Tettamanti wrote: Il Sun, Aug 19, 2007 at 10:31:26PM +0300, Avi Kivity ha scritto: Luca wrote: On 8/19/07, Luca Tettamanti [EMAIL PROTECTED] wrote: +static uint64_t qemu_next_deadline(void) { +uint64_t

Re: [kvm-devel] Running KVM without root privileges

2007-08-19 Thread Luca
is : warning: could not configure /dev/net/tun: no virtual network emulation Could not initialize device 'tap'' You need CAP_NET_ADMIN to fiddle with TUN/TAP. Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping

Re: [kvm-devel] Running KVM without root privileges

2007-08-19 Thread Luca
On 8/19/07, Eugene Coetzee [EMAIL PROTECTED] wrote: Luca wrote: On 8/19/07, Eugene Coetzee [EMAIL PROTECTED] wrote: Hi . I'm trying to run KVM on Feisty, 64 bit Intel with the -net nic -net tap switches so I can use it in bridged network mode. It refuses and I have to run it sudo which

Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-19 Thread Luca
On 8/19/07, Luca Tettamanti [EMAIL PROTECTED] wrote: +static uint64_t qemu_next_deadline(void) { +uint64_t nearest_delta_us = ULLONG_MAX; +uint64_t vmdelta_us; Hum, I introduced a bug here... those vars should be signed. On the overhead introduced: how do you measure it? Luca

Re: [kvm-devel] [BUG][PATCH?] kvm: unhandled wrmsr: 0xc0000083

2007-08-19 Thread Luca Tettamanti
Il Sun, Aug 19, 2007 at 10:36:06AM +0300, Avi Kivity ha scritto: Luca wrote: On 8/13/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca Tettamanti wrote: The patch stops the unhandled wrmsr, but reboot is still not working (guest is stuck using 100% of the CPU). The last working

Re: [kvm-devel] installing kvm on debian 4.0 r0

2007-08-18 Thread Luca
has a KVM package you can do: apt-get build-dep kvm which should cover all the dependencies. Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log

Re: [kvm-devel] [BUG][PATCH?] kvm: unhandled wrmsr: 0xc0000083

2007-08-17 Thread Luca
On 8/13/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca Tettamanti wrote: The patch stops the unhandled wrmsr, but reboot is still not working (guest is stuck using 100% of the CPU). The last working userspace is KVM-28, and I tested it with recent kernel modules. Any idea on this one

[kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take 2

2007-08-17 Thread Luca Tettamanti
precedence over other timers, but of course this can be overridden. Patch 4 introduces dynticks timer source; patch is mostly based on the work Dan Kenigsberg. dynticks is now the default alarm timer. Luca -- - This SF.net email

[kvm-devel] [PATCH 3/4] Add support for HPET periodic timer.

2007-08-17 Thread Luca Tettamanti
in the same way as the RTC timer. Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- vl.c | 57 - 1 file changed, 56 insertions(+), 1 deletion(-) Index: qemu/vl.c

[kvm-devel] [PATCH 2/4] Add -clock option.

2007-08-17 Thread Luca Tettamanti
Allow user to override the list of available alarm timers and their priority. The format of the options is -clock clk1,clk2,... Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- vl.c | 72 +++ 1 file changed, 72 insertions

[kvm-devel] [PATCH 4/4] Add support for dynamic ticks.

2007-08-17 Thread Luca Tettamanti
] Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- configure |5 ++ vl.c | 149 +++--- 2 files changed, 148 insertions(+), 6 deletions(-) Index: qemu/vl.c

Re: [kvm-devel] [Qemu-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take 2

2007-08-17 Thread Luca
running on a windows host ? The improvements - beyond the refactoring - are either specific to Linux (HPET timer) or to UNIX in general (dynticks - POSIX timers are used). It may be possible to use one-shot timer on windows too, but I'm not really familiar with win32 API. Luca

[kvm-devel] [PATCH/RFC 3/4] Add support for HPET periodic timer.

2007-08-16 Thread Luca Tettamanti
in the same way as the RTC timer. Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- qemu/vl.c | 57 ++- 1 files changed, 56 insertions(+), 1 deletions(-) diff --git a/qemu/vl.c b/qemu/vl.c index f0b4896..0373beb 100644 --- a/qemu/vl.c +++ b/qemu

[kvm-devel] [PATCH/RFC 4/4] Add support for dynamic ticks.

2007-08-16 Thread Luca Tettamanti
] Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- qemu/configure |5 ++ qemu/vl.c | 149 -- 2 files changed, 148 insertions(+), 6 deletions(-) diff --git a/qemu/configure b/qemu/configure index 365b7fb..38373db 100755 --- a/qemu/configure

[kvm-devel] [PATCH/RFC 1/4] Rework alarm timer infrastrucure.

2007-08-16 Thread Luca Tettamanti
Make the alarm code modular, removing #ifdef from the generic code and abstract a common interface for all the timer. The result is functionally equivalent to the old code. Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- qemu/vl.c | 292

[kvm-devel] [PATCH/RFC 0/4] Rework alarm timer infrastrucure.

2007-08-16 Thread Luca Tettamanti
Hello, in reply to this mail I will send a serie of 4 patches that cleans up and expands the alarm timer handling in QEMU. Patches apply to current kvm-userspace tree, but I think I can rebase it to QEMU svn if desired. Patch 1 is mostly a cleanup of the existing code; instead of having multiple

[kvm-devel] [PATCH/RFC 2/4] Add -clock option.

2007-08-16 Thread Luca Tettamanti
Allow user to override the list of available alarm timers and their priority. The format of the options is -clock clk1,clk2,... Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- qemu/vl.c | 90 -- 1 files changed, 72 insertions(+), 18

Re: [kvm-devel] kvm for Ubuntu 7.04 (was Re: a (bad) kvm story from a plain user)

2007-08-15 Thread Luca
- does not contain the kernel space part). Download kvm-35 tarball, you'll find both pieces. Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events

Re: [kvm-devel] a (bad) kvm story from a plain user

2007-08-14 Thread Luca
/kvm/bin/qemu like the HOWTO mentioned (as I didn't compiled the kvm bundle myself...). Under debian the executable is called kvm; I believe that it's the same under ubuntu. Run dpkg -L kvm and see what has been installed. Luca

Re: [kvm-devel] [PATCH] Add support for HPET periodic timer.

2007-08-13 Thread Luca
On 8/13/07, Daniel P. Berrange [EMAIL PROTECTED] wrote: On Mon, Aug 13, 2007 at 11:04:46AM +0300, Avi Kivity wrote: Luca Tettamanti wrote: Something like: - try to use HPET (unless -no-rtc selected) - try to use RTC (unless -no-rtc selected) - fallback to normal unix facilities

[kvm-devel] [PATCH] Fix compile time warnings in userspace component

2007-08-13 Thread Luca Tettamanti
Fix a few trivial warnings: - use %zu when printing size_t arguments in printf - include qemu-kvm.h where appropriate - change the return type of kvm_eat_signals Signed-Off-By: Luca Tettamanti [EMAIL PROTECTED] --- qemu/hw/apic.c |4 qemu/migration.c |8

Re: [kvm-devel] [PATCH] Dynamic ticks

2007-08-13 Thread Luca Tettamanti
; +break; +#endif } } } Luca -- Se non puoi convincerli, confondili. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search

Re: [kvm-devel] kvm.qumranet.com uncontactable?

2007-08-12 Thread Luca
is ok, I can reach the server (from Italy) just fine, but nothing responds (nothing at *all*, not event a RST - the same behaviour of iptables DROP target BTW). Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping

Re: [kvm-devel] adding support for above 2giga to kvm (include patchs)

2007-08-12 Thread Luca Tettamanti
, extended_memory); + kvm_memory_region_save_params(kvm, above_bios_memory); *vm_mem = mmap(NULL, memory, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); if (*vm_mem == MAP_FAILED) { Luca -- La differenza fra l'intelligenza e la stupidita`? All'intelligenza c'e` un limite

[kvm-devel] [BUG][PATCH?] kvm: unhandled wrmsr: 0xc0000083

2007-08-11 Thread Luca Tettamanti
it with recent kernel modules. Any idea on this one? Luca -- Runtime error 6D at f000:a12f : user incompetente - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search

Re: [kvm-devel] kvm very slow

2007-08-07 Thread Luca
to program the HPET in dont-break-other-stuff mode is underway. Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX

Re: [kvm-devel] kvm very slow

2007-08-07 Thread Luca
On 8/7/07, Dor Laor [EMAIL PROTECTED] wrote: Luca claims the HPET intefer the RTC. Can it be disabled? ( I know some new chipsets implement rtc using HPET). Basically HPET can operate in legacy mode - where it uses the same IRQ as the RTC (and RTC won't deliver any interrupt) - or in standard

Re: [kvm-devel] kvm very slow

2007-08-07 Thread Luca Tettamanti
Il Tue, Aug 07, 2007 at 02:08:08PM +0200, Luca ha scritto: On 8/7/07, Dor Laor [EMAIL PROTECTED] wrote: Luca claims the HPET intefer the RTC. Can it be disabled? ( I know some new chipsets implement rtc using HPET). Basically HPET can operate in legacy mode - where it uses the same IRQ

Re: [kvm-devel] qcow2 image growing without reason ?

2007-07-29 Thread Luca
6.4GB. Hum, then the used disk space is 6.4GB. Selecting all files may skip hidden/system/whatever files according to explorer settings. Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files

Re: [kvm-devel] [ANNOUNCE] kvm-30 release

2007-07-19 Thread Luca
BIOS) which doesn't enable the port though. Luca As a side note: I'm currently busy with ICWE and tomorrow I'll be leaving for Rome so I cannot do further tests. - This SF.net email is sponsored by: Microsoft Defy all challenges

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-18 Thread Luca
On 7/17/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca wrote: So, would it be correct to revert the patch enabling the ports, assuming people use the kvm-supplied bios? I think so. Please confirm that the original test case (I think it was the FC7 installer?) works with the kvm bios

Re: [kvm-devel] capturing debug outputs

2007-07-17 Thread Luca
with real hw). Append console=ttyS0 (or console=tty0 console=ttyS0 to have both) to kernel command line. Luca - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-15 Thread Luca
On 7/15/07, Luca [EMAIL PROTECTED] wrote: On 7/13/07, Dave Hansen [EMAIL PROTECTED] wrote: diff -ru kvm-fast-dmesg.txt kvm-slow-dmesg.txt Linux version 2.6.22 ([EMAIL PROTECTED]) (gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)) #13 Wed Jul 11 15:27:01 PDT 2007 Is this a vanilla 2.6.22? 32

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-15 Thread Luca
On 7/15/07, Luca [EMAIL PROTECTED] wrote: On 7/15/07, Luca [EMAIL PROTECTED] wrote: On 7/13/07, Dave Hansen [EMAIL PROTECTED] wrote: diff -ru kvm-fast-dmesg.txt kvm-slow-dmesg.txt Linux version 2.6.22 ([EMAIL PROTECTED]) (gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)) #13 Wed Jul 11

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-13 Thread Luca
: Luca Tettamanti [EMAIL PROTECTED] Date: Tue Jun 5 14:47:33 2007 +0300 kvm: qemu: initialize ata ports as enabled this allows libata to see the qemu ata ports. diff --git a/qemu/hw/ide.c b/qemu/hw/ide.c index 190f074..ddfb9bc 100644 --- a/qemu/hw/ide.c +++ b/qemu/hw/ide.c

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-13 Thread Luca
wasn't enabled sometimes and setting the 0x80 bits as Luca has done fixed the issue. Then, I found that later versions of KVM (sans my patch) seemed to work fine so I somewhat assumed the issue had been addressed. When I saw Lucas patch come through, I realized that it must not have been fixed

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-13 Thread Luca
On 7/13/07, Gregory Haskins [EMAIL PROTECTED] wrote: On Fri, 2007-07-13 at 16:46 +0200, Luca wrote: On 7/13/07, Gregory Haskins [EMAIL PROTECTED] wrote: Just to clarify: you are suggesting that the old IDE driver used to see that the controller was disabled and reprogrammed it by itself

Re: [kvm-devel] Network definitions in a guest (FC6) under kvm

2007-07-12 Thread Luca
get home if you're interested. Luca - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http

Re: [kvm-devel] Network definitions in a guest (FC6) under kvm

2007-07-12 Thread Luca Tettamanti
, Luca -- Dicono che il cane sia il miglior amico dell'uomo. Secondo me non e` vero. Quanti dei vostri amici avete fatto castrare, recentemente? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE

Re: [kvm-devel] [PATCH 2/2] KVM: Use the scheduler preemption hooks to make kvm preemptible

2007-07-11 Thread Luca
on X86_CMPXCHG64 || 64BIT select PREEMPT_HOOKS maybe? Luca - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click

Re: [kvm-devel] opening windows from linux (using kvm) in full screen by default

2007-07-02 Thread Luca
On 7/2/07, Mark Ryden [EMAIL PROTECTED] wrote: My question is: I am launching windows 2003 from linux by /usr/local/kvm/bin/qemu-system-x86_64 . -hda vdisk.img -cdrom /dev/hdb -no-acpi -boot d -m 384. -full-screen and, please, man pages exist for a reason ;) Luca

Re: [kvm-devel] kvm-27 host oopses

2007-07-02 Thread Luca
); return p; } MMU working memory was exhausted during a guest context switch. It has been fixed by: KVM: Lazy guest cr3 switching 4b82b37a35a085a07d9ed84efee06c69655fd3d1 which is included in KVM-28. Luca - This SF.net

Re: [kvm-devel] [ kvm-Bugs-1740031 ] Kubuntu 7.04 fails to boot as guest- hangs after kernel boot

2007-06-28 Thread Luca
On 6/22/07, Luca [EMAIL PROTECTED] wrote: On 6/22/07, Morten Lund [EMAIL PROTECTED] wrote: On Thursday 21 June 2007 01:24, Luca wrote: On 6/20/07, SourceForge.net [EMAIL PROTECTED] wrote: Bugs item #1740031, was opened at 2007-06-20 01:12 Message generated for change (Tracker Item

[kvm-devel] [PATCH 1/2] kvm: Fix x86 emulator writeback

2007-06-19 Thread Luca Tettamanti
and perform the writeback stage in the emulation unless it's explicitly disabled (currently push and some 2 bytes instructions may disable the writeback). Signed-Off-By: Luca Tettamanti [EMAIL PROTECTED] --- Tested with Fedora7, Solaris10 and WinXP on a 32 bit host with Intel CPU. drivers/kvm

Re: [kvm-devel] [PATCH 1/2] kvm: Fix x86 emulator writeback

2007-06-19 Thread Luca Tettamanti
: /* wbinvd */ break; Luca -- Ci sono le balle, le megaballe e le statistiche. Mark Twain - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control

Re: [kvm-devel] Duplicate content in files

2007-06-19 Thread Luca
during the initial import. Luca - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http

Re: [kvm-devel] [BUG] Oops with KVM-27

2007-06-17 Thread Luca Tettamanti
Il Sat, Jun 16, 2007 at 10:43:23AM +0300, Avi Kivity ha scritto: Luca Tettamanti wrote: Il Fri, Jun 15, 2007 at 12:06:50PM +0300, Avi Kivity ha scritto: After a bit of thinking: it's correct but removes an optimization; furthermore it may miss other instructions that write to memory

[kvm-devel] [PATCH 1/2] kvm: Fix x86 emulator writeback

2007-06-17 Thread Luca Tettamanti
and always perform the writeback stage in the emulation. Signed-Off-By: Luca Tettamanti [EMAIL PROTECTED] --- drivers/kvm/x86_emulate.c | 60 +++- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm

[kvm-devel] [PATCH 2/2] kvm: avoid useless memory write when possible

2007-06-17 Thread Luca Tettamanti
When writing to normal memory and the memory area is unchanged the write can be safely skipped, avoiding the costly kvm_mmu_pte_write. Signed-Off-By: Luca Tettamanti [EMAIL PROTECTED] --- drivers/kvm/kvm_main.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-16 Thread Luca
). Nahh, that's too brutal. Is there a way to (hypothetically) read: # cat /sys/module/kvm/parameters/number_of_running_vms 2 cat /sys/module/kvm_intel/refcnt (or kvm_amd) will tell you how many VMs are running. Luca

Re: [kvm-devel] [BUG] Oops with KVM-27

2007-06-15 Thread Luca Tettamanti
X86EMUL_CONTINUE; } static unsigned long get_segment_base(struct kvm_vcpu *vcpu, int seg) Both patches apply to kvm-28 and have been run-time tested with 32bit guest on 32bit host, with a VMX processor. If patches look good I'll resubmit with proper changelog and signed-off. Luca

Re: [kvm-devel] kvm-intel kernel panicing 2.6.22 on T7200

2007-06-14 Thread Luca
is not even receiving NMIs... Luca - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net

Re: [kvm-devel] [BUG] Oops with KVM-27

2007-06-14 Thread Luca Tettamanti
Il Thu, Jun 14, 2007 at 11:26:29AM +0300, Avi Kivity ha scritto: Luca Tettamanti wrote: With GOOD_APIC apic_read_around is a nop, while apic_write_around is a normal write. With !GOOD_APIC apic_write_around writes to the APIC reg using xchg. With !GOOD_APIC and this patch: --- include/asm

Re: [kvm-devel] [BUG] Oops with KVM-27

2007-06-14 Thread Luca Tettamanti
Il Fri, Jun 15, 2007 at 12:53:24AM +0200, Luca Tettamanti ha scritto: Il Thu, Jun 14, 2007 at 11:26:29AM +0300, Avi Kivity ha scritto: Luca Tettamanti wrote: With GOOD_APIC apic_read_around is a nop, while apic_write_around is a normal write. With !GOOD_APIC apic_write_around writes

  1   2   >