Re: [kvm-devel] [PATCH] Use a table to dispatch IO requests in kvmctl

2007-10-10 Thread Avi Kivity
Anthony Liguori wrote: > This patch attempts to clean up kvmctl so that it can be more easily made to > work for multiple architectures and to support more emulation. > > It introduces a io dispatch mechanism. This mechanism supports subpage > granularity but is optimized to efficiently cover regi

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Avi Kivity
Jim Paris wrote: > If I stop KVM in the monitor with "stop", wait a minute, and do > "cont", a Linux guest gives me a "BUG: soft lockup detected on CPU#0". > Is that expected behavior? No. > What isn't virtualized that allows it to > detect that? The host is a core 2 duo. > > It may be tha

[kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Jim Paris
If I stop KVM in the monitor with "stop", wait a minute, and do "cont", a Linux guest gives me a "BUG: soft lockup detected on CPU#0". Is that expected behavior? What isn't virtualized that allows it to detect that? The host is a core 2 duo. I have bigger problems in the guest after migrating to

[kvm-devel] [ANNOUNCE] kvm-46 release

2007-10-10 Thread Avi Kivity
We've now switched to allocating guest memory in userspace rather than in the kernel. This is important if you have a mainframe, but also if you want to share memory between guests and implement nice features like swapping. Changes since kvm-45: - fix host oops on bad guest ioapic accesses - hand

Re: [kvm-devel] RFC/patch: a very trivial patch towards portability

2007-10-10 Thread Carsten Otte
Avi Kivity wrote: > Small, reviewable, posted patches are definitely the best way forward. Very well, will go that direction. > >> -case KVM_CHECK_EXTENSION: { >> -int ext = (long)argp; >> - >> -switch (ext) { >> -case KVM_CAP_IRQCHIP: >> -case KVM_CAP_HLT: >> -

Re: [kvm-devel] RFC/patch: a very trivial patch towards portability

2007-10-10 Thread Carsten Otte
Avi Kivity wrote: > What's the motivation for the new header? So we have a list of > arch-dependent functions? Compiler-wise it could just as well remain in > kvm.h. The motivation for a new header, is that it contains definitions specific to an architecture. These prototypes should go to kvm.

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

2007-10-10 Thread Jun Koi
Hi, On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > We've now switched to allocating guest memory in userspace rather than > in the kernel. This is important if you have a mainframe, but also if > you want to share memory between guests and implement nice features like > swapping. This is i

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

2007-10-10 Thread Avi Kivity
Jun Koi wrote: > Hi, > > On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > >> We've now switched to allocating guest memory in userspace rather than >> in the kernel. This is important if you have a mainframe, but also if >> you want to share memory between guests and implement nice features

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Dong, Eddie
[EMAIL PROTECTED] wrote: > > It may be that the timer correction code detects that zillions of > timer interrupts have not been serviced by the guest so it floods the > guest with these interrupts. Does -no-kvm-irqchip help? > In Xen, we decide to froze the guest time after save/restore. In this

Re: [kvm-devel] Firewire Support for KVM Guest?

2007-10-10 Thread Izik Eidus
Calin Brabandt wrote: > I'm a KVM newb and can't find any information or > associated FAQ about KVM guest firewire support Unfourtantly kvm have no firewire support - This SF.net email is sponsored by: Splunk Inc. Still grepp

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

2007-10-10 Thread Jun Koi
On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > Jun Koi wrote: > > Hi, > > > > On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > > > >> We've now switched to allocating guest memory in userspace rather than > >> in the kernel. This is important if you have a mainframe, but also if > >> you

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

2007-10-10 Thread Avi Kivity
Jun Koi wrote: > On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > >> Jun Koi wrote: >> >>> Hi, >>> >>> On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: >>> >>> We've now switched to allocating guest memory in userspace rather than in the kernel. This is important if

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: > [EMAIL PROTECTED] wrote: > >> It may be that the timer correction code detects that zillions of >> timer interrupts have not been serviced by the guest so it floods the >> guest with these interrupts. Does -no-kvm-irqchip help? >> >> > In Xen, we decide to froze the gu

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Dong, Eddie
Avi Kivity wrote: > Dong, Eddie wrote: >> [EMAIL PROTECTED] wrote: >> >>> It may be that the timer correction code detects that zillions of >>> timer interrupts have not been serviced by the guest so it floods >>> the guest with these interrupts. Does -no-kvm-irqchip help? >>> >>> >> In Xen, we

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: > Avi Kivity wrote: > >> Dong, Eddie wrote: >> >>> [EMAIL PROTECTED] wrote: >>> >>> It may be that the timer correction code detects that zillions of timer interrupts have not been serviced by the guest so it floods the guest with these interrupts.

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

2007-10-10 Thread Farkas Levente
Avi Kivity wrote: > We've now switched to allocating guest memory in userspace rather than > in the kernel. This is important if you have a mainframe, but also if > you want to share memory between guests and implement nice features like > swapping. > > Changes since kvm-45: > - fix host oops on

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: >> Or is the timer saved in absolute time? if so you are right, and yes, >> your solution is needed. >> >> > Looks like current live migration, also save/restore, doesn't migrate > guest time. (do I miss something?) So the new guest will > see a totally different TSC and

Re: [kvm-devel] split ioapic reset API

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: > Avi Kivity wrote: > >> Dong, Eddie wrote: >> >>> This one is a preparation for kernel devices reset support. >>> >>> >>> >>>Split ioapic reset API and export PIC reset API >>> >>> >> Please split into two patches, I need to fold them into the pic patch >>

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Dong, Eddie
>Or is the timer saved in absolute time? if so you are right, and yes, >your solution is needed. > Looks like current live migration, also save/restore, doesn't migrate guest time. (do I miss something?) So the new guest will see a totally different TSC and OS feel stranger or many lost ticks

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

2007-10-10 Thread Avi Kivity
Farkas Levente wrote: > Avi Kivity wrote: > >> We've now switched to allocating guest memory in userspace rather than >> in the kernel. This is important if you have a mainframe, but also if >> you want to share memory between guests and implement nice features like >> swapping. >> >> Changes s

Re: [kvm-devel] Firewire Support for KVM Guest?

2007-10-10 Thread Gildas
2007/10/10, Calin Brabandt <[EMAIL PROTECTED]>: > I'm a KVM newb and can't find any information or > associated FAQ about KVM guest firewire support. If > there's no KVM support, I'm seeking alternative > recommendations, if KVM list members are so inclined. > > My goal is to boot a dedicated and

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

2007-10-10 Thread Farkas Levente
Farkas Levente wrote: > Avi Kivity wrote: >> We've now switched to allocating guest memory in userspace rather than >> in the kernel. This is important if you have a mainframe, but also if >> you want to share memory between guests and implement nice features like >> swapping. >> >> Changes since

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

2007-10-10 Thread Farkas Levente
Avi Kivity wrote: > Farkas Levente wrote: >> Avi Kivity wrote: >> >>> We've now switched to allocating guest memory in userspace rather than >>> in the kernel. This is important if you have a mainframe, but also if >>> you want to share memory between guests and implement nice features like >>>

Re: [kvm-devel] kernel device reset support

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: > Avi Kivity wrote: > >> Dong, Eddie wrote: >> >>> Avi Kivity wrote: >>> >>> But, for an ungraceful reset, nothing prevents an AP from issuing a reset? >>> Mmm, Yes, but I think current architecture can't handle this. >>> The thread whe

Re: [kvm-devel] kvm: disabled by bios

2007-10-10 Thread Avi Kivity
Elmar Haneke wrote: > Hi, > > is there any option to reenable virtualisation support (AMD-CPU) if it > is disabled by bios (and Bios does not show an option to enable > virtualisation support)? > Look for a bios update, that may help. -- error compiling committee.c: too many arguments to fun

Re: [kvm-devel] SMP reboot issue

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: > SMP reboot failed with various phenomena such as user level > "unhandled vm exit: 0x8021 ..." when rebooting SMP RHEL5U > or "execption 8 (0)..." when rebooting XP etc. The reason is that > we are not correctly reset VCPU. create_vcpu does some initialization > work which

[kvm-devel] kvm: disabled by bios

2007-10-10 Thread Elmar Haneke
Hi, is there any option to reenable virtualisation support (AMD-CPU) if it is disabled by bios (and Bios does not show an option to enable virtualisation support)? Elmar - This SF.net email is sponsored by: Splunk Inc. Stil

Re: [kvm-devel] OpenBSD 4.1 failes with kvm-45

2007-10-10 Thread Izik Eidus
Oliver Kowalke wrote: > Hi, > I've Debian/Lenny (amd64) with kernel 2.6.22-9 (kvm-support build in) with > kvm-45 running. > WinXP, FreeBSD-6.2 (i386) and NetBSD-3.1 (i386) are working. > I've only a problem running OpenBSD-4.1 (i386). The installation succeeded, > but if I start OpenBSD I get fo

Re: [kvm-devel] FreeBSD image hangs during boot

2007-10-10 Thread Avi Kivity
Aurelien Jarno wrote: >>> I also confirm that using -no-acpi fixes the problem. However, I have >>> seen strange data corruption, even on Intel. >>> >>> Basically, booting a recently installed FreeBSD leads to the following >>> message from the bootloader: "No kernel found". And the next time, I ge

[kvm-devel] OpenBSD 4.1 failes with kvm-45

2007-10-10 Thread Oliver Kowalke
Hi, I've Debian/Lenny (amd64) with kernel 2.6.22-9 (kvm-support build in) with kvm-45 running. WinXP, FreeBSD-6.2 (i386) and NetBSD-3.1 (i386) are working. I've only a problem running OpenBSD-4.1 (i386). The installation succeeded, but if I start OpenBSD I get following error: cpu0: QEMU Virtual

Re: [kvm-devel] kvm-45 problems

2007-10-10 Thread Laurent Vivier
Avi Kivity wrote: > Zhao, Yunfeng wrote: >> This fix cannot resolve this issue. >> Against latest kvm commits, SMP linux with 4 vcpus still cannot boot up. >> But the issue will not happen , if adding "-smp4 -no-acpi". >> > > Can you try the attached patch? > > > > > > > -

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

2007-10-10 Thread Farkas Levente
Avi Kivity wrote: > We've now switched to allocating guest memory in userspace rather than > in the kernel. This is important if you have a mainframe, but also if > you want to share memory between guests and implement nice features like > swapping. we did a quick test against this version and it

Re: [kvm-devel] FreeBSD image hangs during boot

2007-10-10 Thread Aurelien Jarno
Avi Kivity a écrit : > Aurelien Jarno wrote: I also confirm that using -no-acpi fixes the problem. However, I have seen strange data corruption, even on Intel. Basically, booting a recently installed FreeBSD leads to the following message from the bootloader: "No kernel fou

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

2007-10-10 Thread Avi Kivity
Farkas Levente wrote: > Avi Kivity wrote: > >> We've now switched to allocating guest memory in userspace rather than >> in the kernel. This is important if you have a mainframe, but also if >> you want to share memory between guests and implement nice features like >> swapping. >> > > we

Re: [kvm-devel] FreeBSD image hangs during boot

2007-10-10 Thread Avi Kivity
Aurelien Jarno wrote: > Avi Kivity a écrit : > >> Aurelien Jarno wrote: >> > I also confirm that using -no-acpi fixes the problem. However, I have > seen strange data corruption, even on Intel. > > Basically, booting a recently installed FreeBSD leads to the following >

Re: [kvm-devel] kvm-45 problems

2007-10-10 Thread Avi Kivity
Zhao, Yunfeng wrote: > This fix cannot resolve this issue. > Against latest kvm commits, SMP linux with 4 vcpus still cannot boot up. > But the issue will not happen , if adding "-smp4 -no-acpi". > Can you try the attached patch? -- error compiling committee.c: too many arguments to functi

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

2007-10-10 Thread Farkas Levente
Avi Kivity wrote: > Farkas Levente wrote: >> Avi Kivity wrote: >> >>> We've now switched to allocating guest memory in userspace rather than >>> in the kernel. This is important if you have a mainframe, but also if >>> you want to share memory between guests and implement nice features like >>>

Re: [kvm-devel] OpenBSD 4.1 failes with kvm-45

2007-10-10 Thread Alexey Eremenko
On 10/10/07, Izik Eidus <[EMAIL PROTECTED]> wrote: > Oliver Kowalke wrote: > > Hi, > > I've Debian/Lenny (amd64) with kernel 2.6.22-9 (kvm-support build in) with > > kvm-45 running. > > WinXP, FreeBSD-6.2 (i386) and NetBSD-3.1 (i386) are working. > > I've only a problem running OpenBSD-4.1 (i386).

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

2007-10-10 Thread Avi Kivity
Farkas Levente wrote: >>> we did a quick test against this version and it's turn out the smp >>> guests are still not working. even if we start only one linux guest with >>> 4cpu on 4cpu host the guest kernel hangs at random stages of the kernel >>> loading process (if we run more smp guests then t

[kvm-devel] RFC/patch: a very trivial patch towards portability V2

2007-10-10 Thread Carsten Otte
Thanks to Avis review, this is an updated version of the patch that splits kvm_dev_ioctl into architecture dependent and architecture independent parts. I've changed everything Avi noted in his review feedback. It is also rebased to fit on today's git with all that reindentation. KVM_CHECK_EXTENSI

[kvm-devel] RFC/patch: a very trivial patch towards portability V2.1

2007-10-10 Thread Carsten Otte
Christian Borntraeger pointed out that Avi requested to rename kvm_x86.c to x86.c. The patch below is the same as V2, but the files kvm_x86.[ch] have been renamed to x86.[ch], and the #includes have been updated. signed-off-by: Carsten Otte <[EMAIL PROTECTED]> --- Index: kvm/drivers/kvm/kvm.h

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

2007-10-10 Thread Farkas Levente
Avi Kivity wrote: > Farkas Levente wrote: we did a quick test against this version and it's turn out the smp guests are still not working. even if we start only one linux guest with 4cpu on 4cpu host the guest kernel hangs at random stages of the kernel loading process (if

Re: [kvm-devel] OpenBSD 4.1 failes with kvm-45

2007-10-10 Thread Dan Kenigsberg
On Wed, Oct 10, 2007 at 12:56:18PM +0200, Izik Eidus wrote: > Oliver Kowalke wrote: > > Hi, > > I've Debian/Lenny (amd64) with kernel 2.6.22-9 (kvm-support build in) with > > kvm-45 running. > > WinXP, FreeBSD-6.2 (i386) and NetBSD-3.1 (i386) are working. > > I've only a problem running OpenBSD-4.

Re: [kvm-devel] FreeBSD image hangs during boot

2007-10-10 Thread Aurelien Jarno
Avi Kivity a écrit : > Aurelien Jarno wrote: I also confirm that using -no-acpi fixes the problem. However, I have seen strange data corruption, even on Intel. Basically, booting a recently installed FreeBSD leads to the following message from the bootloader: "No kernel fou

Re: [kvm-devel] RFC/patch: a very trivial patch towards portability V2.1

2007-10-10 Thread Avi Kivity
Carsten Otte wrote: > Christian Borntraeger pointed out that Avi requested to rename kvm_x86.c > to x86.c. The patch below is the same as V2, but the files kvm_x86.[ch] > have been renamed to x86.[ch], and the #includes have been updated. > > signed-off-by: Carsten Otte <[EMAIL PROTECTED]> > --- >

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

2007-10-10 Thread Daniel P. Berrange
On Wed, Oct 10, 2007 at 10:28:24AM +0200, Avi Kivity wrote: > We've now switched to allocating guest memory in userspace rather than > in the kernel. This is important if you have a mainframe, but also if > you want to share memory between guests and implement nice features like > swapping. Is th

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

2007-10-10 Thread Avi Kivity
Daniel P. Berrange wrote: > On Wed, Oct 10, 2007 at 10:28:24AM +0200, Avi Kivity wrote: > >> We've now switched to allocating guest memory in userspace rather than >> in the kernel. This is important if you have a mainframe, but also if >> you want to share memory between guests and implement n

Re: [kvm-devel] [PATCH] Use a table to dispatch IO requests in kvmctl

2007-10-10 Thread Anthony Liguori
Avi Kivity wrote: > Anthony Liguori wrote: >> Avi Kivity wrote: >>> Anthony Liguori wrote: >>> This patch attempts to clean up kvmctl so that it can be more easily made to work for multiple architectures and to support more emulation. It introduces a io dispatch mechanis

Re: [kvm-devel] FreeBSD image hangs during boot

2007-10-10 Thread Aurelien Jarno
Avi Kivity a écrit : > Aurelien Jarno wrote: >> Avi Kivity a écrit : >> >>> Aurelien Jarno wrote: >>> >> I also confirm that using -no-acpi fixes the problem. However, I have >> seen strange data corruption, even on Intel. >> >> Basically, booting a recently installed FreeBS

Re: [kvm-devel] [PATCH] Use a table to dispatch IO requests in kvmctl

2007-10-10 Thread Avi Kivity
Anthony Liguori wrote: >> >>> >>> QEMU uses an array for PIO but a table for MMIO. I figured it would >>> be best to just use the same table. >> >> Or the same array? > > Indexed by the address or just sorted and searchable? MMIO addresses > are rather sparse so the former seems like the only s

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

2007-10-10 Thread Haydn Solomon
Should we be seeing a mmap file when running guests now or do we have to use a special flag when running kvm? On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > > Daniel P. Berrange wrote: > > On Wed, Oct 10, 2007 at 10:28:24AM +0200, Avi Kivity wrote: > > > >> We've now switched to allocating g

Re: [kvm-devel] [PATCH] Use a table to dispatch IO requests in kvmctl

2007-10-10 Thread Anthony Liguori
Avi Kivity wrote: > Anthony Liguori wrote: > >> This patch attempts to clean up kvmctl so that it can be more easily made to >> work for multiple architectures and to support more emulation. >> >> It introduces a io dispatch mechanism. This mechanism supports subpage >> granularity but is optim

Re: [kvm-devel] FreeBSD image hangs during boot

2007-10-10 Thread Avi Kivity
Aurelien Jarno wrote: > Avi Kivity a écrit : > >> Aurelien Jarno wrote: >> > I also confirm that using -no-acpi fixes the problem. However, I have > seen strange data corruption, even on Intel. > > Basically, booting a recently installed FreeBSD leads to the following >

Re: [kvm-devel] [PATCH] Use a table to dispatch IO requests in kvmctl

2007-10-10 Thread Avi Kivity
Anthony Liguori wrote: > Avi Kivity wrote: >> Anthony Liguori wrote: >> >>> This patch attempts to clean up kvmctl so that it can be more easily >>> made to >>> work for multiple architectures and to support more emulation. >>> >>> It introduces a io dispatch mechanism. This mechanism supports

[kvm-devel] OpenSolaris 09/2007 (Sun Solaris Express)

2007-10-10 Thread magicboiz
Hi list, you I always report OS that do not start with kvm :)) Sun Solaris Express(9/07), does not detect the hard disk..I attach an screenshot. Kernel:2.6.23 kvm: 45 and 46 CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz <>---

Re: [kvm-devel] [PATCH] Use a table to dispatch IO requests in kvmctl

2007-10-10 Thread Anthony Liguori
Avi Kivity wrote: > Anthony Liguori wrote: >>> QEMU uses an array for PIO but a table for MMIO. I figured it would be best to just use the same table. >>> >>> Or the same array? >> >> Indexed by the address or just sorted and searchable? MMIO addresses >> are rather sparse so the

Re: [kvm-devel] RFC/patch: a very trivial patch towards portability V2.1

2007-10-10 Thread Carsten Otte
Avi Kivity wrote: > Argument names in prototypes please. Will do that. >> case KVM_CHECK_EXTENSION: { >> int ext = (long)argp; >> >> -switch (ext) { >> -case KVM_CAP_IRQCHIP: >> -case KVM_CAP_HLT: >> -case KVM_CAP_MMU_SHADOW_CACHE

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

2007-10-10 Thread Dor Laor
Haydn Solomon wrote: > Should we be seeing a mmap file when running guests now or do we have > to use a special flag when running kvm? > Nope, the default is user space allocation were a regular malloc is used for allocating the guest ram from userspace. The mmap is for future shared memory imple

[kvm-devel] RFC/patch: a very trivial patch towards portability V3

2007-10-10 Thread Carsten Otte
Thanks to Avi's continued review, we've got even more common code this time: KVM_CHECK_EXTENSION ioctl is now completely handled in kvm_main.c instead of having arch callbacks to check extensions. The architectures are expected to setup a bit mask named KVM_ARCH_EXTENSIONS with information about ca

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

2007-10-10 Thread Haydn Solomon
Thanks for clearing that up. On 10/10/07, Dor Laor <[EMAIL PROTECTED]> wrote: > > Haydn Solomon wrote: > > Should we be seeing a mmap file when running guests now or do we have > > to use a special flag when running kvm? > > > Nope, the default is user space allocation were a regular malloc is us

Re: [kvm-devel] OpenBSD 4.1 failes with kvm-45

2007-10-10 Thread Oliver Kowalke
Am Mittwoch, 10. Oktober 2007 14:17:56 schrieb Alexey Eremenko: > On 10/10/07, Izik Eidus <[EMAIL PROTECTED]> wrote: > > Oliver Kowalke wrote: > > > Hi, > > > I've Debian/Lenny (amd64) with kernel 2.6.22-9 (kvm-support build in) > > > with kvm-45 running. > > > WinXP, FreeBSD-6.2 (i386) and NetBSD-

Re: [kvm-devel] OpenBSD 4.1 failes with kvm-45

2007-10-10 Thread Avi Kivity
Oliver Kowalke wrote: > Am Mittwoch, 10. Oktober 2007 14:17:56 schrieb Alexey Eremenko: > >> On 10/10/07, Izik Eidus <[EMAIL PROTECTED]> wrote: >> >>> Oliver Kowalke wrote: >>> Hi, I've Debian/Lenny (amd64) with kernel 2.6.22-9 (kvm-support build in) with kvm-45 runnin

[kvm-devel] Working on an entry-level project

2007-10-10 Thread Cam Macdonell
Hi, I'm interested in working on one of the entry-level projects on the TODO list to get my feet wet with the code. My preference is allowing CPU features to be passed to the guest. So I two things: I want to check if anyone is working on these already and if not can someone please expand

Re: [kvm-devel] Working on an entry-level project

2007-10-10 Thread Izik Eidus
Cam Macdonell wrote: > Hi, > > I'm interested in working on one of the entry-level projects on the TODO > list to get my feet wet with the code. My preference is allowing CPU > features to be passed to the guest. So I two things: I want to check > if anyone is working on these already and if

Re: [kvm-devel] Working on an entry-level project

2007-10-10 Thread Cam Macdonell
Izik Eidus wrote: > Cam Macdonell wrote: >> Hi, >> >> > sorry, but patch for that feature was already wrote by someone. > > but you are more than welcome to try/ask about something else. Ah, I should've searched the list. Is there another project of similar scope that would be of use? Thank

[kvm-devel] [ kvm-Bugs-1811073 ] XP guest unstable, clamav crashes it

2007-10-10 Thread SourceForge.net
Bugs item #1811073, was opened at 2007-10-10 18:19 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1811073&group_id=180599 Please note that this message will contain a full copy

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Jim Paris
Avi Kivity wrote: > Jim Paris wrote: > > If I stop KVM in the monitor with "stop", wait a minute, and do > > "cont", a Linux guest gives me a "BUG: soft lockup detected on CPU#0". > > Is that expected behavior? > > No. > > > What isn't virtualized that allows it to > > detect that? The host is

[kvm-devel] [PATCH 3/3] Use a table to dispatch IO requests in kvmctl (v2)

2007-10-10 Thread Anthony Liguori
This patch attempts to clean up kvmctl so that it can be more easily made to work for multiple architectures and to support more emulation. For dispatch, it's using a simple array as suggested by Avi. For x86, we'll have two tables, a pio_table and an mmio_table. For PPC we can just have a singl

[kvm-devel] [PATCH 1/3] Remove memory size from linker script (v2)

2007-10-10 Thread Anthony Liguori
The memory size is currently hardcoded into the linker script (end_of_memory). This prevents the memory size from being specified dynamically in kvmctl. This patch adds a PIO port that can be used to query the memory size in the tests. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git

[kvm-devel] [PATCH 2/3] Allow memory to be specified in kvmctl (v2)

2007-10-10 Thread Anthony Liguori
This patch adds a --memory option to kvmctl to allow the memory size of the guest to be specified. Since v1, I added more checks for bad input as suggested by Muli. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git a/user/main.c b/user/main.c index 9a57a24..a08e0a7 100644 --- a/user/

Re: [kvm-devel] FreeBSD image hangs during boot

2007-10-10 Thread Aurelien Jarno
On Tue, Oct 02, 2007 at 02:38:19PM +0200, Avi Kivity wrote: > Aurelien Jarno wrote: > > Avi Kivity a écrit : > > > >> Aurelien Jarno wrote: > >> > >>> Hi all, > >>> > >>> That's not something new, but I never seen the problem mentioned here. > >>> FreeBSD does not work on KVM, approximately

[kvm-devel] [PATCH] Clean up MMU functions to take struct kvm when appropriate

2007-10-10 Thread Anthony Liguori
Some of the MMU functions take a struct kvm_vcpu even though they effect all VCPUs. This patch cleans up some of them to instead take a struct kvm. This makes things a bit more clear. The main thing that was confusing me was whether certain functions need to be called on all VCPUs. Signed-off-b

[kvm-devel] [PATCH] Clean up MMU functions to take struct kvm when appropriate (v2)

2007-10-10 Thread Anthony Liguori
Sorry, I didn't guilt refresh before sending. I'll have to modify my patchbomb script to check for that to avoid this in the future. Some of the MMU functions take a struct kvm_vcpu even though they effect all VCPUs. This patch cleans up some of them to instead take a struct kvm. This makes thi

[kvm-devel] [PATCH] More struct page cleanups

2007-10-10 Thread Anthony Liguori
This time, the biggest change is gpa_to_hpa. The translation of GPA to HPA does not depend on the VCPU state unlike GVA to GPA so there's no need to pass in the kvm_vcpu. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 4ab487c..8859a92 1

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

2007-10-10 Thread Anthony Liguori
Jun Koi wrote: > On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > >> Jun Koi wrote: >> >>> On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: >>> >>> Jun Koi wrote: > Hi, > > On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > > >

Re: [kvm-devel] soft lockup after stop/cont

2007-10-10 Thread Dong, Eddie
Avi Kivity wrote: > cpu_save (qemu/hw/pc.c) has this: > > #ifdef USE_KVM >if (kvm_allowed) { >for (i = 0; i < NR_IRQ_WORDS ; i++) { >qemu_put_be32s(f, &env->kvm_interrupt_bitmap[i]);} >qemu_put_be64s(f, &env->tsc); >} > #endif Mmm, so this is not the ro

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

2007-10-10 Thread Jun Koi
On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > Jun Koi wrote: > > On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > > > >> Jun Koi wrote: > >> > >>> Hi, > >>> > >>> On 10/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > >>> > >>> > We've now switched to allocating guest memory in usersp

Re: [kvm-devel] [PATCH] Clean up MMU functions to take struct kvm when appropriate

2007-10-10 Thread Anthony Liguori
Anthony Liguori wrote: > Some of the MMU functions take a struct kvm_vcpu even though they effect all > VCPUs. This patch cleans up some of them to instead take a struct kvm. This > makes things a bit more clear. > > The main thing that was confusing me was whether certain functions need to be >

Re: [kvm-devel] kernel device reset support

2007-10-10 Thread Dong, Eddie
Avi Kivity wrote: > Dong, Eddie wrote: >> Avi Kivity wrote: >> > > It's just like the guest kernel executing hlt. Why is there a > difference? Current VP wake up logic thru INIT/SIPI doesn't support this when irqchip in kernel. > >> >> Yes, halt all APs and let BSP do reset ops in user le

[kvm-devel] build error

2007-10-10 Thread Zhao, Yunfeng
I meet following error while compile latest kvm source code. .. make -C qemu make[1]: Entering directory `/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20071010190122210/kvm-us erspace/qemu' Makefile:3: config-host.mak: No such file or directory make[1]: *** No rule to make target

[kvm-devel] kvm_rmap_desc: Can't free all objects

2007-10-10 Thread Dong, Eddie
Avi: Time to time, I see this error message, any typo exist? thx,eddie slab error in kmem_cache_destroy(): cache `kvm_rmap_desc': Can't free all objects Call Trace: [] kmem_cache_destroy+0x93/0xdc [] :kvm:kvm_mmu_module_exit+0x23/0x37 [] :kvm:kvm_exit+0x26/0x31 [] sys_delete_module+0

[kvm-devel] Hacking QEMU/KVM to use unused graphics adapters

2007-10-10 Thread Anthony de Almeida Lopes
I was curious if anyone thinks that it may be possible to get a KVM-patched QEMU to use a real video card? For example, let's say I had a second video card. Is QEMU/kvm a codebase which would support hacking in the ability to utilize this second video card (one not utilized by the host Linux)?

Re: [kvm-devel] kvm_rmap_desc: Can't free all objects

2007-10-10 Thread Avi Kivity
Dong, Eddie wrote: > Avi: > Time to time, I see this error message, any typo exist? > thx,eddie > > > slab error in kmem_cache_destroy(): cache `kvm_rmap_desc': Can't free > all objects > > Call Trace: > [] kmem_cache_destroy+0x93/0xdc > [] :kvm:kvm_mmu_module_exit+0x23/0x37 > [] :kvm:kvm_