Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Jordan Justen
On Thu, Apr 7, 2011 at 12:21, Anthony Liguori wrote: > QEMU does the leg work already to support SMM.  It doesn't work with KVM > because we treat SMM as ROM memory and trap read/write access. > > To make it work with KVM, you'd have to hack things around to switch the VGA > space to RAM in order

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Jordan Justen
On Thu, Apr 7, 2011 at 11:44, Gleb Natapov wrote: > On Thu, Apr 07, 2011 at 01:37:14PM -0500, Anthony Liguori wrote: >> The CS base starts out at 0xf and IP is 0xfff0.  That gives a >> real address of 0x0.  This is usually a trampoline to somewhere >> else in the space. >> >>>C

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Jordan Justen
On Thu, Apr 7, 2011 at 09:08, Anthony Liguori wrote: > On 04/07/2011 10:51 AM, Gleb Natapov wrote: >> That may seams to be impossible but it is how HW works. And this is how >> QEMU emulates it. Look at target-i386/helper.c:cpu_reset() >> >>     cpu_x86_load_seg_cache(env, R_CS, 0xf000, 0x

[Qemu-devel] [PATCH] docs/specs/fw_cfg.txt: Add fw_cfg documentation

2011-04-03 Thread Jordan Justen
This initial version covers the generic portions of fw_cfg and the x86/x86-64 architecture specific portions of fw_cfg. Signed-off-by: Jordan Justen --- docs/specs/fw_cfg.txt | 168 + 1 files changed, 168 insertions(+), 0 deletions(-) create

[Qemu-devel] [PATCH] hw/pflash_cfi02: Fix lazy reset of ROMD mode

2011-04-03 Thread Jordan Justen
When checking pfl->rom_mode for when to lazily reenter ROMD mode, the value was check was the opposite of what it should have been. This prevent the part from returning to ROMD mode after a write was made to the CFI rom region. Signed-off-by: Jordan Justen --- hw/pflash_cfi02.c |2 +-

[Qemu-devel] [PATCH v3] hw/pc: Support system flash memory with -pflash parameter

2011-03-31 Thread Jordan Justen
just below 4GB in place of the normal rom image. Signed-off-by: Jordan Justen --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/pc.c| 161 +++- 3 files changed, 125 insertions(+), 38 deletion

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-24 Thread Jordan Justen
2011/3/24 Gleb Natapov : > On Wed, Mar 23, 2011 at 03:32:41PM -0700, Jordan Justen wrote: >> By the way, today OVMF attempts to store NV-Var data in a file on the >> disk, but this cannot support variables at runtime.  (This is why I >> sent in the patch for using -pflash on

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-23 Thread Jordan Justen
2011/3/23 Gleb Natapov : > On Tue, Mar 22, 2011 at 02:53:16PM -0700, Jordan Justen wrote: >> To support a boot override for UEFI, this full path would be needed. >> For the purposes of a UEFI boot override, could the user could provide >> the partition & path info? >&g

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-22 Thread Jordan Justen
2011/3/22 Gleb Natapov : > On Tue, Mar 22, 2011 at 12:28:51PM -0700, Jordan Justen wrote: >> Can this cover a full path like this? >> /pci@i0cf8/ide@1,1/drive@1/disk@0 => partition0 => /path/abc.efi >> > Open Firmware have syntax for that. > /pci@i0cf8/ide@1,1/dri

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-22 Thread Jordan Justen
2011/3/22 Gleb Natapov : > On Mon, Mar 21, 2011 at 02:23:31PM -0700, Jordan Justen wrote: >> There is one big difference here between how VM's generally specify >> the boot disk vs. a UEFI system.  In a UEFI system, normally the boot >> path is not known during the firs

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-21 Thread Jordan Justen
On Mon, Mar 21, 2011 at 14:17, Michael Brown wrote: > On Monday 21 Mar 2011 21:06:24 Stefan Hajnoczi wrote: >> On Mon, Mar 21, 2011 at 6:27 PM, Anthony Liguori >> > Is there gPXE for UEFI yet? >> >> I have never tried it myself, but I think it should work.  CCed >> Michael Brown to check. > > Yes

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-21 Thread Jordan Justen
On Mon, Mar 21, 2011 at 11:27, Anthony Liguori wrote: > On 03/21/2011 01:14 PM, Jordan Justen wrote: >> >> This weekend I spent some time working on loading SeaBIOS from OVMF to >> start a legacy boot.  I was able to get x86&  x86-64 Linux to legacy >> boot using t

[Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-21 Thread Jordan Justen
This weekend I spent some time working on loading SeaBIOS from OVMF to start a legacy boot. I was able to get x86 & x86-64 Linux to legacy boot using this method. Unfortunately, (I think) it is not nearly as nice a having a true CSM. Basically, you have to decide at some point in the OVMF boot t

Re: [Qemu-devel] Does any version of QEMU support EFI?

2011-03-19 Thread Jordan Justen
On Sat, Mar 19, 2011 at 08:36, Bei Guan wrote: > Does QEMU have the plan to ship with EFI firmware? Hi. I work on the OVMF project which Stefan mentioned. I definitely can't speak for the qemu/kvm project, but I'll give my impressions from my OVMF perspective. I think qemu/kvm has some interes

[Qemu-devel] RFC: Emulation of PC System Flash V2

2011-03-13 Thread Jordan Justen
Thanks to everyone's feedback on my previous proposal (in particular Jan Kiszka for pointing out hw/pflash_cfi*), I now have a second, much simpler proposal. http://wiki.qemu.org/Features/PC_System_Flash One area where this deviates from some of the previous feedback is in the command line parame

[Qemu-devel] Re: RFC: emulation of system flash

2011-03-11 Thread Jordan Justen
On Thu, Mar 10, 2011 at 12:21, Gleb Natapov wrote: > On Thu, Mar 10, 2011 at 11:50:42AM -0800, Jordan Justen wrote: >> >> So, perhaps this feature should build upon the other feature you and >> Jan are discussing.  When will it become available? >> > When somebody wi

Re: [Qemu-devel] Re: RFC: emulation of system flash

2011-03-11 Thread Jordan Justen
On Thu, Mar 10, 2011 at 16:27, Carl-Daniel Hailfinger wrote: > Auf 11.03.2011 01:19, Jan Kiszka schrieb: >> At least it's an in-band interface, which is the better choice as we >> currently only have a PIIX3 southbridge for x86, predating even FWHs. >> > > Right, that pretty much kills the option

Re: [Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 15:41, Carl-Daniel Hailfinger wrote: > Auf 10.03.2011 23:58, Jordan Justen schrieb: >> Would the firmware >> be able to depend on having control of the device at OS runtime?  This >> would be needed for UEFI non-volatile variables to make sure they can

Re: [Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 14:31, Carl-Daniel Hailfinger wrote: > Right, the constant size argument is definitely a point we need to talk > about. > > We could sidestep the issue by always using a 16 MByte flash device > which gets filled from the top with the firmware image, but I'm not sure > if th

Re: [Qemu-devel] RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 14:10, Carl-Daniel Hailfinger wrote: > Auf 10.03.2011 22:55, Jordan Justen schrieb: >> On Thu, Mar 10, 2011 at 13:37, Carl-Daniel Hailfinger >> wrote: >>> Is there any reason why you chose to invent an interface for the flash >>> chip w

Re: [Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 13:52, Carl-Daniel Hailfinger wrote: > Auf 10.03.2011 19:43, Jordan Justen schrieb: >> I thought this might be a case where deviation from real hardware >> emulation could better serve the VM's needs. >> > > If we have to write the code anyw

Re: [Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 13:41, Carl-Daniel Hailfinger wrote: > Auf 10.03.2011 12:48, Gleb Natapov schrieb: >> Yes we can make memory slot that will be treated as memory on read and >> IO on write, but first relying on that will prevent using flash interface >> on older kernels and second it is not

Re: [Qemu-devel] RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 13:37, Carl-Daniel Hailfinger wrote: > Auf 10.03.2011 05:51, Jordan Justen schrieb: >> I have documented a simple flash-like device which I think could be >> useful for qemu/kvm in some cases.  (Particularly for allowing >> persistent UEFI n

Re: [Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 11:23, Anthony Liguori wrote: > If you implement a CSM for Tiano Core, then you won't need to use any > special parameters because we can just use OVMF by default ;-) Sorry, but I can't do this. This is unlikely to change anytime soon. But, if someone seeks to put forth

[Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 11:12, Gleb Natapov wrote: > On Thu, Mar 10, 2011 at 10:59:07AM -0800, Jordan Justen wrote: >> Yes, this definitely could add firmware upgrade issues, but I thought >> this could be the responsibility of the firmware itself.  For example, >> OVMF cou

[Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 04:27, Jan Kiszka wrote: > On 2011-03-10 13:17, Gleb Natapov wrote: >> So flash will be always IO and overlay will be always ROM. This will > > Yes, and once we have KVM support for read-RAM/write-IO slots, flash > will be able to switch between ROM and IO mode just like it

[Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 03:46, Jan Kiszka wrote: > On 2011-03-10 12:27, Jan Kiszka wrote: >> On 2011-03-10 10:47, Gleb Natapov wrote: >>> My suggestion is to extend >>> -bios option like this: >>> >>> -bios bios.bin,flash=flash.bin,flash_base=addr >>> >>> flash.bin will be mapped at address flash_

[Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 01:47, Gleb Natapov wrote: > Two things. First You suggest to replace -bios with -flash. This will > make firmware upgrade painful process that will have to be performed > from inside the guest since the same flash image will contain both > firmware and whatever data was st

[Qemu-devel] Re: RFC: emulation of system flash

2011-03-10 Thread Jordan Justen
On Thu, Mar 10, 2011 at 01:10, Avi Kivity wrote: > On 03/10/2011 06:51 AM, Jordan Justen wrote: >> >> http://wiki.qemu.org/Features/System_Flash >> > > - make the programming interface the same as an existing device How strongly do you feel about this? For one thi

[Qemu-devel] RFC: emulation of system flash

2011-03-09 Thread Jordan Justen
Hi all, I have documented a simple flash-like device which I think could be useful for qemu/kvm in some cases. (Particularly for allowing persistent UEFI non-volatile variables.) http://wiki.qemu.org/Features/System_Flash Let me know if you have any suggestions or concerns. Thanks for your tim

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-09 Thread Jordan Justen
On Wed, Mar 9, 2011 at 05:43, Natalia Portillo wrote: > This may come late in the discussion, but, has OVMF been tested with Mac OS X? No. I don't think Apple considers VMs an acceptable usage environment for OS X. Please correct me if I am mistaken. Thanks, -Jordan

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-09 Thread Jordan Justen
2011/3/9 Gleb Natapov : > On Tue, Mar 08, 2011 at 09:13:38AM -0800, Jordan Justen wrote: >> Regarding UEFI non-volatile variables on real HW: >> Most systems today have at least 1MB of flash storage located just >> below 4GB.  The entire contents can be modified, which is ho

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-08 Thread Jordan Justen
On Tue, Mar 8, 2011 at 18:23, Kevin O'Connor wrote: > On Tue, Mar 08, 2011 at 09:00:05AM -0800, Jordan Justen wrote: >> Yes, the UEFI system is still in place.  The UEFI part still handles >> the majority of platform init, and calls into the CSM at various >> points.  Th

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-08 Thread Jordan Justen
2011/3/8 Gleb Natapov : > On Tue, Mar 08, 2011 at 07:18:09AM +, Stefan Hajnoczi wrote: >> > Regarding the non-volatile variables issue, I have been trying to >> > develop a proposal for addressing this with a change to QEMU's >> > hardware support of bios.bin.  But, I don't have the suggestion

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-08 Thread Jordan Justen
On Mon, Mar 7, 2011 at 23:18, Stefan Hajnoczi wrote: > On Tue, Mar 8, 2011 at 12:54 AM, Jordan Justen wrote: >> The biggest issue that you guys care about for OVMF is a lack of >> legacy bios compatibility (CSM).  There has been no progress in this >> area.  (However, it h

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-07 Thread Jordan Justen
On Mon, Mar 7, 2011 at 01:48, Stefan Hajnoczi wrote: > Jordan, UEFI guest firmware comes up periodically.  It seems to be a > feature that will be required in the future but as of today I don't > know of QEMU developers who are working on or using it. > > Maybe you can start by giving an update on

Re: [Qemu-devel] Re: EFI console stopped working in Qemu 0.14.0

2011-03-06 Thread Jordan Justen
On Sun, Mar 6, 2011 at 13:26, vagran wrote: > > Can you try disabling KVM? > > Yes, it helped. Problem exists only when using KVM. Thanks. One thing I suspect is that the kernel side of kvm had an issue around this time (Ubuntu 9.10) with a bios.bin larger than 256kb. With qemu 0.14.0, you could

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-06 Thread Jordan Justen
On Sun, Mar 6, 2011 at 07:29, Michal Suchanek wrote: > On 6 March 2011 05:12, Jordan Justen wrote: >> I know you already have your own ideas to think of. :) >> http://wiki.qemu.org/Google_Summer_of_Code_2011 >> >> But, I am wondering if any of you might have som

[Qemu-devel] OVMF Google Summer of Code ideas

2011-03-05 Thread Jordan Justen
I know you already have your own ideas to think of. :) http://wiki.qemu.org/Google_Summer_of_Code_2011 But, I am wondering if any of you might have some UEFI or OVMF ideas for us: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=GSOC2011 Thanks, -Jordan

Re: [Qemu-devel] Re: EFI console stopped working in Qemu 0.14.0

2011-03-05 Thread Jordan Justen
On Thu, Mar 3, 2011 at 10:02, vagran wrote: > I have taken EFI BIOS image from > http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OVMF > 32-bit version works perfectly. However 64-bit version for some reason > doesn't work on > qemu-system-x86_64. Hi. I was wondering if you could

[Qemu-devel] Link to UEFI OVMF on downloads page

2011-02-28 Thread Jordan Justen
Hi all, Would it be possible to add a link to OVMF: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OVMF on the qemu links page: http://wiki.qemu.org/Links for UEFI support on x86 & x86-64 guests? Thanks, -Jordan

<    1   2   3