Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-21 Thread Alexander Graf
On 21.07.2010, at 00:22, Blue Swirl wrote: > On Sat, Jul 17, 2010 at 9:50 AM, Richard W.M. Jones wrote: >> I'm trying to speed up the process of loading kernel and initrd. >> >> I found that the main loop which loads these into qemu memory does it >> via executing in the guest: >> >> rep insb

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-20 Thread Blue Swirl
On Sat, Jul 17, 2010 at 9:50 AM, Richard W.M. Jones wrote: > I'm trying to speed up the process of loading kernel and initrd. > > I found that the main loop which loads these into qemu memory does it > via executing in the guest: > >  rep insb (%dx),%es:(%edi) > > In other words, reading it byte-a

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-20 Thread Richard W.M. Jones
On Tue, Jul 20, 2010 at 04:40:28PM +0300, Gleb Natapov wrote: > Which remind me that ad-hoc DMA interface should be discoverable by a > guest. Judging by 'git annotate' this interface has already been extended 4 times without requiring this to be discoverable. However I will add an extra config b

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-20 Thread Gleb Natapov
On Tue, Jul 20, 2010 at 02:15:16PM +0100, Jamie Lokier wrote: > Gleb Natapov wrote: > > On Mon, Jul 19, 2010 at 09:40:18AM +0200, Alexander Graf wrote: > > > > > > On 19.07.2010, at 09:33, Gleb Natapov wrote: > > > > > > > On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: > > >

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-20 Thread Jamie Lokier
Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 09:40:18AM +0200, Alexander Graf wrote: > > > > On 19.07.2010, at 09:33, Gleb Natapov wrote: > > > > > On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: > > >> On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov wrote: > > >>> Tha

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Anthony Liguori
On 07/19/2010 11:11 AM, Gleb Natapov wrote: On Mon, Jul 19, 2010 at 10:54:03AM -0500, Anthony Liguori wrote: On 07/19/2010 09:53 AM, Gleb Natapov wrote: On Mon, Jul 19, 2010 at 09:45:58AM -0500, Anthony Liguori wrote: On 07/19/2010 02:33 AM, Gleb Natapov wrote: On

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 05:47:40PM +0100, Richard W.M. Jones wrote: > On Mon, Jul 19, 2010 at 07:11:37PM +0300, Gleb Natapov wrote: > > And there are such that cause cpu to stall for 6.5 seconds when you do > > io to them? I never said that we should implement ISA or PCI device, I > > don't know wh

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Richard W.M. Jones
On Mon, Jul 19, 2010 at 07:11:37PM +0300, Gleb Natapov wrote: > And there are such that cause cpu to stall for 6.5 seconds when you do > io to them? I never said that we should implement ISA or PCI device, I > don't know why you bring them here. Where is "6.5 seconds" coming from? That is the *to

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 10:54:03AM -0500, Anthony Liguori wrote: > On 07/19/2010 09:53 AM, Gleb Natapov wrote: > >On Mon, Jul 19, 2010 at 09:45:58AM -0500, Anthony Liguori wrote: > >>On 07/19/2010 02:33 AM, Gleb Natapov wrote: > >>>On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote:

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Anthony Liguori
On 07/19/2010 09:53 AM, Gleb Natapov wrote: On Mon, Jul 19, 2010 at 09:45:58AM -0500, Anthony Liguori wrote: On 07/19/2010 02:33 AM, Gleb Natapov wrote: On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 09:52:23AM -0500, Anthony Liguori wrote: > On 07/19/2010 04:15 AM, Gleb Natapov wrote: > >On Mon, Jul 19, 2010 at 11:09:13AM +0200, Alexander Graf wrote: > >>On 19.07.2010, at 11:06, Gleb Natapov wrote: > >> > >>>On Mon, Jul 19, 2010 at 10:00:04AM +0100, Richard W.M. Jones w

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 09:45:58AM -0500, Anthony Liguori wrote: > On 07/19/2010 02:33 AM, Gleb Natapov wrote: > >On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: > >>On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov wrote: > >>>That what I am warring about too. If we are ad

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Anthony Liguori
On 07/19/2010 04:15 AM, Gleb Natapov wrote: On Mon, Jul 19, 2010 at 11:09:13AM +0200, Alexander Graf wrote: On 19.07.2010, at 11:06, Gleb Natapov wrote: On Mon, Jul 19, 2010 at 10:00:04AM +0100, Richard W.M. Jones wrote: virt-install is another program that uses explicit -in

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Anthony Liguori
On 07/19/2010 02:33 AM, Gleb Natapov wrote: On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov wrote: That what I am warring about too. If we are adding device we have to be sure such device can actually exist on

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 02:06:27PM +0100, Richard W.M. Jones wrote: > On Mon, Jul 19, 2010 at 12:15:43PM +0300, Gleb Natapov wrote: > > That what we are talking about, no? We are trying to find faster way to > > load kernel/initrd and stay architectural. Honestly I would expect much > > greater spe

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Richard W.M. Jones
On Mon, Jul 19, 2010 at 12:15:43PM +0300, Gleb Natapov wrote: > That what we are talking about, no? We are trying to find faster way to > load kernel/initrd and stay architectural. Honestly I would expect much > greater speedup from Richard's approach like 2 seconds vs 8 seconds. It > is hard to ju

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 11:21:34AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 11:19, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 11:13:38AM +0200, Alexander Graf wrote: > >> > >> On 19.07.2010, at 11:10, Gleb Natapov wrote: > >> > >>> On Mon, Jul 19, 2010 at 11:02:54AM +0200, Alex

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 11:19, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 11:13:38AM +0200, Alexander Graf wrote: >> >> On 19.07.2010, at 11:10, Gleb Natapov wrote: >> >>> On Mon, Jul 19, 2010 at 11:02:54AM +0200, Alexander Graf wrote: On 19.07.2010, at 11:00, Gleb Natapov wrote:

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Richard W.M. Jones
On Mon, Jul 19, 2010 at 12:19:22PM +0300, Gleb Natapov wrote: > Vcpu executes "in %ax". Next instruction is executed 6 seconds later. > All timers that should have been processed during this time fire at the > same moment triggering all kind of timeouts. Think about watchdog that > should be writte

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 11:15, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 11:09:13AM +0200, Alexander Graf wrote: >> >> On 19.07.2010, at 11:06, Gleb Natapov wrote: >> >>> On Mon, Jul 19, 2010 at 10:00:04AM +0100, Richard W.M. Jones wrote: virt-install is another program that uses expli

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 11:13:38AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 11:10, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 11:02:54AM +0200, Alexander Graf wrote: > >> > >> On 19.07.2010, at 11:00, Gleb Natapov wrote: > >> > >>> On Mon, Jul 19, 2010 at 10:54:43AM +0200, Alex

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Richard W.M. Jones
On Mon, Jul 19, 2010 at 09:40:18AM +0200, Alexander Graf wrote: > Richard, what does kvm_stat tell you while loading the initrd? Are > there a lot of PIO requests or are we simply looping inside qemu > code? The two attached files were made by running kvm_stat -l > /tmp/... during a single run sta

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 11:10, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 11:02:54AM +0200, Alexander Graf wrote: >> >> On 19.07.2010, at 11:00, Gleb Natapov wrote: >> >>> On Mon, Jul 19, 2010 at 10:54:43AM +0200, Alexander Graf wrote: On 19.07.2010, at 10:48, Gleb Natapov wrote:

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 11:09:13AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 11:06, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 10:00:04AM +0100, Richard W.M. Jones wrote: > >> > >> virt-install is another program that uses explicit -initrd. > >> > > Installation takes a lot of t

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 11:02:54AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 11:00, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 10:54:43AM +0200, Alexander Graf wrote: > >> > >> On 19.07.2010, at 10:48, Gleb Natapov wrote: > >> > >>> > Were there DMA capable devices back in

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 11:06, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 10:00:04AM +0100, Richard W.M. Jones wrote: >> >> virt-install is another program that uses explicit -initrd. >> > Installation takes a lot of time. Saving 1 second there will not be > noticeable. And during lifetime of inst

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 10:00:04AM +0100, Richard W.M. Jones wrote: > On Mon, Jul 19, 2010 at 11:40:41AM +0300, Gleb Natapov wrote: > > On Mon, Jul 19, 2010 at 09:34:11AM +0100, Richard W.M. Jones wrote: > > > On Mon, Jul 19, 2010 at 10:55:33AM +0300, Gleb Natapov wrote: > > > > Why not put then on

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Richard W.M. Jones
On Mon, Jul 19, 2010 at 10:00:04AM +0100, Richard W.M. Jones wrote: [...] OK, it's early in the morning and I can't do maths. But we're still asking a big increase in complexity versus optimizing something which is just slow in qemu at the moment. Rich. -- Richard Jones, Virtualization Group,

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 11:00, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 10:54:43AM +0200, Alexander Graf wrote: >> >> On 19.07.2010, at 10:48, Gleb Natapov wrote: >> >>> Were there DMA capable devices back in ISA times? There must be. If so, we can just take a look at what they do an

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 10:54:43AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 10:48, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 10:41:48AM +0200, Alexander Graf wrote: > >> > >> On 19.07.2010, at 10:30, Gleb Natapov wrote: > >> > >>> On Mon, Jul 19, 2010 at 10:24:46AM +0200, Alex

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Richard W.M. Jones
On Mon, Jul 19, 2010 at 11:40:41AM +0300, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 09:34:11AM +0100, Richard W.M. Jones wrote: > > On Mon, Jul 19, 2010 at 10:55:33AM +0300, Gleb Natapov wrote: > > > Why not put then on cdrom or disk? > > > > It simplifies device and mountpoint enumeration not

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 10:48, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 10:41:48AM +0200, Alexander Graf wrote: >> >> On 19.07.2010, at 10:30, Gleb Natapov wrote: >> >>> On Mon, Jul 19, 2010 at 10:24:46AM +0200, Alexander Graf wrote: On 19.07.2010, at 10:19, Gleb Natapov wrote:

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 10:41:48AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 10:30, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 10:24:46AM +0200, Alexander Graf wrote: > >> > >> On 19.07.2010, at 10:19, Gleb Natapov wrote: > >> > >> Yes and no. It sounds nice at first, but doesn'

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 10:30, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 10:24:46AM +0200, Alexander Graf wrote: >> >> On 19.07.2010, at 10:19, Gleb Natapov wrote: >> >> Yes and no. It sounds nice at first, but doesn't quite fit. There are two >> issues: >> >> 1) We need a new PCI ID > We have

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 09:34:11AM +0100, Richard W.M. Jones wrote: > On Mon, Jul 19, 2010 at 10:55:33AM +0300, Gleb Natapov wrote: > > Why not put then on cdrom or disk? > > It simplifies device and mountpoint enumeration not to have a separate > disk. It would also mean we couldn't use standard

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Richard W.M. Jones
On Mon, Jul 19, 2010 at 10:55:33AM +0300, Gleb Natapov wrote: > Why not put then on cdrom or disk? It simplifies device and mountpoint enumeration not to have a separate disk. It would also mean we couldn't use standard Fedora paths, or we'd have to have bind-mount /bin etc on to the disk mount p

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 10:24:46AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 10:19, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 10:08:57AM +0200, Alexander Graf wrote: > >> > >> On 19.07.2010, at 10:01, Gleb Natapov wrote: > >> > >>> On Mon, Jul 19, 2010 at 09:57:02AM +0200, Alex

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 10:19, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 10:08:57AM +0200, Alexander Graf wrote: >> >> On 19.07.2010, at 10:01, Gleb Natapov wrote: >> >>> On Mon, Jul 19, 2010 at 09:57:02AM +0200, Alexander Graf wrote: On 19.07.2010, at 09:51, Gleb Natapov wrote:

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 10:08:57AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 10:01, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 09:57:02AM +0200, Alexander Graf wrote: > >> > >> On 19.07.2010, at 09:51, Gleb Natapov wrote: > >> > >>> On Mon, Jul 19, 2010 at 09:40:18AM +0200, Alex

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 10:01, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 09:57:02AM +0200, Alexander Graf wrote: >> >> On 19.07.2010, at 09:51, Gleb Natapov wrote: >> >>> On Mon, Jul 19, 2010 at 09:40:18AM +0200, Alexander Graf wrote: On 19.07.2010, at 09:33, Gleb Natapov wrote:

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 09:57:02AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 09:51, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 09:40:18AM +0200, Alexander Graf wrote: > >> > >> On 19.07.2010, at 09:33, Gleb Natapov wrote: > >> > >>> On Mon, Jul 19, 2010 at 08:28:02AM +0100, Rich

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 09:51, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 09:40:18AM +0200, Alexander Graf wrote: >> >> On 19.07.2010, at 09:33, Gleb Natapov wrote: >> >>> On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapo

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 08:44:16AM +0100, Richard W.M. Jones wrote: > On Mon, Jul 19, 2010 at 10:33:12AM +0300, Gleb Natapov wrote: > > On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: > > > On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov wrote: > > > > That what I am warr

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 09:40:18AM +0200, Alexander Graf wrote: > > On 19.07.2010, at 09:33, Gleb Natapov wrote: > > > On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: > >> On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov wrote: > >>> That what I am warring about too. If

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Richard W.M. Jones
On Mon, Jul 19, 2010 at 10:33:12AM +0300, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: > > On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov wrote: > > > That what I am warring about too. If we are adding device we have to be > > > sure such device

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Alexander Graf
On 19.07.2010, at 09:33, Gleb Natapov wrote: > On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: >> On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov wrote: >>> That what I am warring about too. If we are adding device we have to be >>> sure such device can actually exist o

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Gleb Natapov
On Mon, Jul 19, 2010 at 08:28:02AM +0100, Richard W.M. Jones wrote: > On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov wrote: > > That what I am warring about too. If we are adding device we have to be > > sure such device can actually exist on real hw too otherwise we may have > > problems l

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-19 Thread Richard W.M. Jones
On Mon, Jul 19, 2010 at 09:23:56AM +0300, Gleb Natapov wrote: > That what I am warring about too. If we are adding device we have to be > sure such device can actually exist on real hw too otherwise we may have > problems later. I don't understand why the constraints of real h/w have anything to d

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-18 Thread Gleb Natapov
On Sun, Jul 18, 2010 at 10:32:53PM +0200, Alexander Graf wrote: > > On 18.07.2010, at 22:09, Richard W.M. Jones wrote: > > > On Sun, Jul 18, 2010 at 07:26:57PM +0200, Alexander Graf wrote: > >> On 17.07.2010, at 11:53, Richard W.M. Jones wrote: > >>> On Sat, Jul 17, 2010 at 10:50:59AM +0100, Rich

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-18 Thread Gleb Natapov
On Sun, Jul 18, 2010 at 07:26:57PM +0200, Alexander Graf wrote: > > On 17.07.2010, at 11:53, Richard W.M. Jones wrote: > > > On Sat, Jul 17, 2010 at 10:50:59AM +0100, Richard W.M. Jones wrote: > >> I understand from the git logs that fw_cfg was added because the old > >> way was to load kernel &

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-18 Thread Alexander Graf
On 18.07.2010, at 22:09, Richard W.M. Jones wrote: > On Sun, Jul 18, 2010 at 07:26:57PM +0200, Alexander Graf wrote: >> On 17.07.2010, at 11:53, Richard W.M. Jones wrote: >>> On Sat, Jul 17, 2010 at 10:50:59AM +0100, Richard W.M. Jones wrote: I understand from the git logs that fw_cfg was ad

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-18 Thread Richard W.M. Jones
On Sun, Jul 18, 2010 at 07:26:57PM +0200, Alexander Graf wrote: > On 17.07.2010, at 11:53, Richard W.M. Jones wrote: > > On Sat, Jul 17, 2010 at 10:50:59AM +0100, Richard W.M. Jones wrote: > >> I understand from the git logs that fw_cfg was added because the old > >> way was to load kernel & initrd

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-18 Thread Alexander Graf
On 17.07.2010, at 11:53, Richard W.M. Jones wrote: > On Sat, Jul 17, 2010 at 10:50:59AM +0100, Richard W.M. Jones wrote: >> I understand from the git logs that fw_cfg was added because the old >> way was to load kernel & initrd into RAM directly, but this didn't >> work because SeaBIOS would clea

Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-17 Thread Richard W.M. Jones
On Sat, Jul 17, 2010 at 10:50:59AM +0100, Richard W.M. Jones wrote: > I understand from the git logs that fw_cfg was added because the old > way was to load kernel & initrd into RAM directly, but this didn't > work because SeaBIOS would clear the RAM, clobbering kernel & initrd. > Could we change t

[Qemu-devel] Question about qemu firmware configuration (fw_cfg) device

2010-07-17 Thread Richard W.M. Jones
I'm trying to speed up the process of loading kernel and initrd. I found that the main loop which loads these into qemu memory does it via executing in the guest: rep insb (%dx),%es:(%edi) In other words, reading it byte-at-a-time from an emulated IO port. This is very slow[1] when your initrd