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

2008-04-23 Thread Luca Tettamanti
lt ACPI script of the debian stops the desktop manager if it's running but doesn't 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 spo

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

2008-04-22 Thread Luca Tettamanti
; +static int devfn = 7; > + > +if ((devfn % 8) == 7) > + devfn = -1; > +else > + devfn++; This code look strange... devfn should be passed to virtio_init_pci by virtio-{net,blk} init functions, no? Luca ---

Re: [kvm-devel] Some FAQ questions

2008-04-22 Thread Luca Tettamanti
se cfq as the > I/O scheduler. Is cfq still fair in the guest? The VM re-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 Java

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
#x27;s why today some people are hunting copies and submitting 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:

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

2007-12-07 Thread Luca Tettamanti
> 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 - SF.Net email is sponsored by: Check out t

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

2007-11-13 Thread Luca Tettamanti
hen using RTC or HPET for timing you also need to mask SIGIO; you may also need to change F_SETOWN (enable_sigio_timer) with the correct thread id, i.e.: fcntl(fd, F_SETOWN, gettid()); Luca - This SF.net email is sponsored by: Splunk Inc.

Re: [kvm-devel] Vista Networking

2007-11-05 Thread Luca Tettamanti
was fixed in QEMU CVS 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 Sear

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

2007-10-29 Thread Luca Tettamanti
m does not help. Try acpi=force 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 be

Re: [kvm-devel] severe bug in 2.6.23+ kvm.git

2007-10-19 Thread Luca Tettamanti
.1 vanilla has survived and is currently still under test. > kvm.git tag master killed our filesystem at least three times.since monday. linus-git has at least one bug with SG chaining, but usually it just hangs the machine. Patch is here: http://lkml.org/lkml/2007/10/17/269 Luca --

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

2007-09-25 Thread Luca
f [ -x /sbin/ip ]; then > + switch=$(/sbin/ip route list | awk '/^default / { print $NF }') NAK on this piece. This won't 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.or

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

2007-09-24 Thread Luca
nd -serial file:/tmp/log.txt to KVM command line and add "console=ttyS0" to the guest kernel command line. Luca - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual S

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 tr

Re: [kvm-devel] windows 2003 smp guest

2007-09-20 Thread Luca
of HAL > exists what are the advantage/disadvantages them. how can i > change/configure this? Hardware Abstraction Layer. See: http://support.microsoft.com/kb/99588 http://en.wikipedia.org/wiki/Architecture_of_Windows_NT Luca ---

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

2007-09-20 Thread Luca
IDE probe. Same 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

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

2007-09-17 Thread Luca
s and gcc to emit 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/vse012000

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

2007-09-17 Thread Luca
an you setup a serial console (Documentation/serial-console.txt) or at least netconsole (Documentation/networking/netconsole.txt)? > just to clarify, 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 --

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

2007-09-14 Thread Luca
windows xp and got the following > > output. > > > > 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 -

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

2007-09-13 Thread Luca
gt; code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 --> 00 > > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 00 00 00 00 00 > > Cancelado (core dumped) > > Can you give us some additio

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

2007-09-10 Thread Luca
> $dmesg > [54716.482444] kvm: Unknown symbol __divdi3 kvm.ko fails 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_rese

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

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

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

2007-09-09 Thread Luca Tettamanti
lflush 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 motivo, un moti

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_instr

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

2007-09-08 Thread Luca
Yet I visit some articles like this > one > > http://aplawrence.com/Linux/kvm_virtualization.html > > which claims that Xen is "THE FASTEST" approach to virtualization. How can > it be faster since it uses paravirtualization (software) instead of direct > hardwa

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 c

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

2007-09-08 Thread Luca
aka "Pacifica". > The $1M (or $0.02) question 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 a

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

2007-09-08 Thread Luca
Linux may refuse to use ACPI without them (it depends on the configuration). Luca - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio

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

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 wit

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

2007-09-03 Thread Luca
what can be a problem? is it a known bug or it's just not working for me? It's known, but ATM there's no fix available. For more details see: http://thread.gmane.org/gmane.comp.emulators.kvm.devel/5651/focus=6003 and following mails. Luca --

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

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

2007-08-29 Thread Luca
ong branch ;-) ) I prefer to clone the whole tree (disk space is cheap...), sharing GIT object where possible, e.g. 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

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

2007-08-28 Thread Luca
copies or substantial portions of the Software. [cut] Shouldn't you use the standard GPL boilerplate? (IANAL, so maybe the text above is a superset of the GPL and is fine...) Luca - This SF.net email is sponsored by: Splun

Re: [kvm-devel] Userspace hypercalls?

2007-08-27 Thread Luca
ied. > if it isn't guaranteed to be the current thread, we're back > with scheduler involvement, and possibly cacheline bouncing. It's possible to use pthread_sigmask() to block the signal on all threads but one. But this w

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

2007-08-27 Thread Luca Tettamanti
_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 agi. Vorrei che di me si dicesse: ``Com'� morto

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

2007-08-25 Thread Luca
your own kernel modules. Do you *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

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

2007-08-25 Thread Luca
usr/src/kernels/2.6.22.4- 65.fc7-x86_64/include -MMD -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 - Thi

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 &#

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

2007-08-24 Thread Luca
you run "make kernel V=1" (on a clean source) and post the result? > Am I losing anything important by commenting them out? You can workaround by adding: #define KVM_EXIT_SET_TPR 11 Luca - This SF.net email is sp

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

2007-08-24 Thread Luca
anilla 2.6.22.3 on that machine. Try: cat /sys/devices/system/clocksource/clocksource0/available_clocksource do you see HPET listed twice? Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find

Re: [kvm-devel] Using the VNC option

2007-08-24 Thread Luca
h -vnc :0 (or :1, :2, etc. - in this way you can manage multiple independent VMs), then connect with vncviewer :0 (or 123.123.123.123:0 for remote connections). Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping

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. T

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

2007-08-23 Thread Luca
be a 64bit integer (and the shift would be acceptable). There are a couple more of warning related to this issue, a possible solution to silence the warning is to use always 64bit integers instead of the longs. Luca - This SF.n

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

2007-08-22 Thread Luca
thus can be > >> ignored). > >> VIRTUAL just becomes more accurate with dyntics, before multiple > >> timers were batched together. > >> > >> > Or maybe your host kernel can't support such a high rate. > >> > >> I don'

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: > > >>> > > >&

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 debu

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 > >>> -- --- --- - --

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 Tettamanti wrote: > > Il Wed, Aug 22, 2007 at 08:02:07AM +0300, Avi Kivity ha scritto: > > > >> Luca Tettamanti wrote: > >> > >> > >>> Actually I'm having troubles with cycleso

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

2007-08-22 Thread Luca Tettamanti
Il Wed, Aug 22, 2007 at 08:02:07AM +0300, Avi Kivity ha scritto: > Luca Tettamanti wrote: > > > Actually I'm having troubles with cyclesoak (probably it's calibration), > > numbers are not very stable across multiple runs... > > > > I've had good

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 th

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 additi

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: > >

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; > >>

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

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 me

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" swi

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

2007-08-19 Thread Luca
rns I don't > want to do. > > The error message 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

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

2007-08-18 Thread Luca Tettamanti
se the dyn-tick minimum res will be 1msec. I believe it should > work ok since this is the case without any dyn-tick. Actually minimum resolution depends on host HZ setting, but - yes - essentially you have the same behaviour of the "unix" timer, plus the overhead of reprogramming the t

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

2007-08-18 Thread Luca
iced I > also needed): > > apt-get install kernel-package > apt-get install linux-headers-2.6-amd64 Since Debian has a KVM package you can do: apt-get build-dep kvm which should cover all the dependencies. Luca

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

2007-08-17 Thread Luca
the improvement in a linux guest > when 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

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

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

[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 inse

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

2007-08-17 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]> --- vl.c

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

2007-08-17 Thread Luca Tettamanti
ed 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

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

2007-08-17 Thread Luca Tettamanti
sted HPET takes 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 --

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 re

[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(

[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 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

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

2007-08-16 Thread Luca Tettamanti
AIL PROTECTED]> 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 10075

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

2007-08-16 Thread Luca Tettamanti
ed 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

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

2007-08-15 Thread Luca
ed on to buidling > kvm-33 from source tar ball which built fine. But, the kvm-33 tarball > had the svm source files in the the kernel directory. I notice those > files are not in the kvm-35 kernel directory (and are causing the > failure above). Is there some other repo svm files a

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

2007-08-14 Thread Luca
support > I ran /usr/bin/qemu as I didn't have /usr/local/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

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

2007-08-13 Thread Luca Tettamanti
nearest_delta_us = vmdelta_us; +} + +/* Avoid arming the timer to negative, zero, or too low values */ +/* MIN_TIMER_REARM_US should be optimized */ +#define MIN_TIMER_REARM_US 250 +if (nearest_delta_us <= MIN_TIMER_REARM_US) +nearest_delt

[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

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

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

2007-08-12 Thread Luca Tettamanti
extended_memory.memory_size = pcimem - exmem; > > kvm->vcpu_fd[0] = -1; > > @@ -273,8 +282,17 @@ int kvm_create(kvm_context_t kvm, unsigned long memory, > void **vm_mem) > } >

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

2007-08-12 Thread Luca
pect that we just have a bad ISP that doesn't peer well. We'll > work to fix this. Seems more like a firewall or something like that. IP routing 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 i

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

2007-08-11 Thread Luca Tettamanti
by savevm - qemu/vl.c) may need a similar fix. 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? Luca -- Runtime error 6D at f

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

2007-08-10 Thread Luca Tettamanti
ed in the same way as the RTC timer. HPET must be explicitly enabled with -use-hpet. Signed-off-by: Luca Tettamanti <[EMAIL PROTECTED]> --- qemu/vl.c | 62 +- 1 files changed, 60 insertions(+), 2 deletions(-) diff --git a/qemu/vl.c b/qemu

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 lega

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 i

Re: [kvm-devel] kvm very slow

2007-08-07 Thread Luca
ly on of them can deliver the periodical interrupt. I think that work 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

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

2007-07-29 Thread Luca
HD in win xp it also indictates 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

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

2007-07-19 Thread Luca
S (e.g. QEMU 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 spons

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

2007-07-17 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

Re: [kvm-devel] capturing debug outputs

2007-07-17 Thread Luca
le (the same way you do 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

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

2007-07-16 Thread Luca
On 7/16/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > Luca wrote: > > 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: &

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 ([EMA

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

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

2007-07-15 Thread Luca
t 0x1408-0x140f, BIOS settings: hdc:pio, hdd:pio Hum, FC6 PIIX driver always comes up with the same mode, regardless of what I'm doing to the controller... Luca - This SF.net email is sponsored by DB2 Express Download DB2 Exp

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

2007-07-14 Thread Luca
; > There's your problem. With that patch, your kernel is using PIO instead > of DMA. > > I'm not 100% sure what's going here other than the fact that this > particular problem has cropped up a number of times on qemu-devel. It's > been very difficult to g

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 tha

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

2007-07-13 Thread Luca
uest > would fail to see the IDE controller. I found it to be that the IDE > controller 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 assume

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

2007-07-13 Thread Luca
mmit id by chance? > > > > -- Dave > > > > > commit 55a3212bc2f5ecddcd4c5cdf2bfb37ad71e45ff2 > Author: 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

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

2007-07-12 Thread Luca Tettamanti
rnal host (be it another machine on the LAN or a server on the Internet) you'll have to set up a NAT (or - simpler - MASQUERADE) with iptables. This setup allows you to make a clear separation between the VMs and the rest of the net. Of course

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

2007-07-12 Thread Luca
unique net segment I have a script for the 2nd solution, I can send as soon as I 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

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

2007-07-11 Thread Luca
on X86 && EXPERIMENTAL > + depends on X86 && EXPERIMENTAL && PREEMPT_HOOKS > depends on X86_CMPXCHG64 || 64BIT select PREEMPT_HOOKS maybe? Luca - This SF.net email is sponsored by DB2 Exp

Re: [kvm-devel] SPAM control of this mailing-list

2007-07-04 Thread Luca
rse, but that doesn't save you from running a local SPAM filter. FWIW GMail spam filter catches almost all the spam on this list, spamassassin on my machine does the rest. Luca - This SF.net email is sponsored by DB2 Ex

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

2007-07-02 Thread Luca
> p = mc->objects[--mc->nobjs]; > memset(p, 0, size); > return p; > } MMU working memory was exhausted during a guest context switch. It has been fixed by: KVM: Lazy guest cr3 switching

  1   2   >