Re: [kvm-devel] [PATCH] Lazy FPU save/restore

2007-02-18 Thread Anthony Liguori
Avi Kivity wrote: > Avi Kivity wrote: >>> >>> I'll have to try and setup a 64 bit system. I cannot reproduce on >>> my 32bit system with your test program. >> >> It may be related to 64-bit (as that uses sse for floating point), or >> to the fact that I use ssh on a remote host, which causes mor

Re: [kvm-devel] paravirtualization & cr3-cache feature

2007-02-18 Thread [EMAIL PROTECTED]
> >Why so many vm switches? First up, a typical I/O system maxes at > >about 1Gb/s, right? That would be a gigabit NIC, or striped RAID, or > >something like that. This suggests an average of only about 300 > >bytes/transfer, to get >150k individual transfers per second? I > >thought block I/O

Re: [kvm-devel] [PATCH] Lazy FPU save/restore

2007-02-18 Thread Avi Kivity
Avi Kivity wrote: I'll have to try and setup a 64 bit system. I cannot reproduce on my 32bit system with your test program. It may be related to 64-bit (as that uses sse for floating point), or to the fact that I use ssh on a remote host, which causes more context switches. I'll try to re

Re: [kvm-devel] [PATCH] Lazy FPU save/restore

2007-02-18 Thread Avi Kivity
Anthony Liguori wrote: >> >> ... and reverted. >> >> Running an fpu load on both guest and host shows corruption (both on >> the guest and host). The load is >> >> >>> #include >>> >>> void test_fpu() >>> { >>> int i; >>> double f = 0; >>> >>> for (i = 0; i < 1000; ++i) >>> f

Re: [kvm-devel] [PATCH] Lazy FPU save/restore

2007-02-18 Thread Anthony Liguori
Avi Kivity wrote: > Avi Kivity wrote: >> Anthony Liguori wrote: >>> The following patch saves the host FPU state and loads the guests >>> FPU state if !(CR0.MP == 1 && CR0.TS == 1). >>> >>> When CR0.MP == 1 && CR0.TS == 1, all FPU activity will generate >>> exceptions. OS's use these exceptions

Re: [kvm-devel] [PATCH] Lazy FPU save/restore

2007-02-18 Thread Avi Kivity
Avi Kivity wrote: > Anthony Liguori wrote: >> The following patch saves the host FPU state and loads the guests FPU >> state if !(CR0.MP == 1 && CR0.TS == 1). >> >> When CR0.MP == 1 && CR0.TS == 1, all FPU activity will generate >> exceptions. OS's use these exceptions to implement lazy FPU load

Re: [kvm-devel] success report (mostly)

2007-02-18 Thread Francesc Romà i Frigolé
On 2/18/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > Notes: > 1) please mention in your HOWTO that the -m 384 parameter to qemu will > make qemu allocate 384 MB of RAM, and should be used only in computers > with 1GB or more of memory, otherwise advise to use more conservative > amounts like -m 1

Re: [kvm-devel] success report (mostly)

2007-02-18 Thread Avi Kivity
Francesc Romà i Frigolé wrote: > Hello, > > I'm happy to report that KVM-13 compiled, installed and run properly > on a gentoo system with kernel 2.6.19-gentoo-r5. I was able to install > and run windows XP pro and MS office 2007. > > Thank you very much to all people involved. This is a very nic

Re: [kvm-devel] KVM success

2007-02-18 Thread Avi Kivity
Javier Smaldone wrote: > Will linux 2.6.20 work with kvm-13? (The kvm wiki says I must use kvm-12) > > No. kvm-13 will work with 2.6.20-rc1 and later. It will also work with current git if you're brave. You can also use the external module provided with kvm-13 with any kernel. -- Do not m

Re: [kvm-devel] KVM success

2007-02-18 Thread Javier Smaldone
Will linux 2.6.20 work with kvm-13? (The kvm wiki says I must use kvm-12) -- Javier Smaldone [EMAIL PROTECTED] http://www.smaldone.com.ar/ - http://blog.smaldone.com.ar - Take Surveys. Earn Cash. Influence the Future of IT Jo

Re: [kvm-devel] KVM success

2007-02-18 Thread Avi Kivity
Javier Smaldone wrote: > Hi everybody. > > I've successfully installed kvm and two guests OSs on my PC. Here is > the full description: > > > Host system > --- > > - CPU: AMD Athlon 64 3500+ (2.2 Ghz) > - RAM: 448 Mb DDR2 533 Mhz > - Video: Via UniChrome K8M890 (64Mb) > - OS: Debian

[kvm-devel] [ kvm-Bugs-1661336 ] kvm: get_dirty_pages returned -1

2007-02-18 Thread SourceForge.net
Bugs item #1661336, was opened at 2007-02-16 12:04 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=1661336&group_id=180599 Please note that this message will contain a full copy

[kvm-devel] [ kvm-Bugs-1661262 ] kvm: get_dirty_pages returned -1

2007-02-18 Thread SourceForge.net
Bugs item #1661262, was opened at 2007-02-16 10:28 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=1661262&group_id=180599 Please note that this message will contain a full copy

Re: [kvm-devel] Virtualized hardware and PCI

2007-02-18 Thread Avi Kivity
Muli Ben-Yehuda wrote: > On Sun, Feb 18, 2007 at 11:47:07AM +0200, Avi Kivity wrote: > >> Ronald Lew wrote: >> >>> Can Guest OS access abnormal PCI cards such as a fax card or a card >>> designed >>> for analog phones (like Digium cards)? Can the guest OS gain full access >>> to >>> th

Re: [kvm-devel] Virtualized hardware and PCI

2007-02-18 Thread Muli Ben-Yehuda
On Sun, Feb 18, 2007 at 11:47:07AM +0200, Avi Kivity wrote: > Ronald Lew wrote: > > Can Guest OS access abnormal PCI cards such as a fax card or a card > > designed > > for analog phones (like Digium cards)? Can the guest OS gain full access > > to > > the PCI card without going through the vi

Re: [kvm-devel] Virtualized hardware and PCI

2007-02-18 Thread Avi Kivity
Ronald Lew wrote: > Can Guest OS access abnormal PCI cards such as a fax card or a card designed > for analog phones (like Digium cards)? Can the guest OS gain full access to > the PCI card without going through the virtualization? > > At present this is not supported. On current hardware i

Re: [kvm-devel] Solaris 10 doesn't work under KVM

2007-02-18 Thread Avi Kivity
Waba wrote: > On Wed, Feb 14, 2007 at 03:20:18PM +0200, Avi Kivity wrote: > >> Well, there's probably an emulator bug somewhere. >> >> Can you add a printk() to set_cr4() in kvm_main.c and see what the guest >> does? The documentation states that it's up to the OS to enable the >> bit, so I c

Re: [kvm-devel] [PATCH] Lazy FPU save/restore

2007-02-18 Thread Avi Kivity
Anthony Liguori wrote: > The following patch saves the host FPU state and loads the guests FPU > state if !(CR0.MP == 1 && CR0.TS == 1). > > When CR0.MP == 1 && CR0.TS == 1, all FPU activity will generate > exceptions. OS's use these exceptions to implement lazy FPU loading > to improve context

Re: [kvm-devel] [PATCH] KVM SVM: intercept SMI to handle it at host level

2007-02-18 Thread Avi Kivity
Joerg Roedel wrote: > From: Joerg Roedel <[EMAIL PROTECTED]> > > This patch changes the SVM code to intercept SMIs and handle it > outside the guest. > Applied, thanks. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ---