WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 1 of 3] Enable UEFI BIOS(OVMF) support in Xen-uns

To: Bei Guan <gbtju85@xxxxxxxxx>, Keir Fraser <keir@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH 1 of 3] Enable UEFI BIOS(OVMF) support in Xen-unstable HVM
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Sat, 23 Jul 2011 17:50:32 +0100
Cc: edk2-devel@xxxxxxxxxxxxxxxxxxxxx, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jordan Justen <jljusten@xxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>, Andrei Warkentin <andreiw@xxxxxxxxxxxx>
Delivery-date: Sat, 23 Jul 2011 09:51:16 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=fIzAbYonsDFm8XZNsK3B4zFPZafV3cPtrHcsaLYOogE=; b=REkQecZ3m7+JjulEyiJ43oXYN576KT0TTp4dz0U31ZNJl7MREq7LZNAgSOwwOlhmLq kGVWz7xsypc6zkiKbxiGzunyejLwMhl7isPwgrryPoGCwLZyEYuVsO74cLu5obQVyx4R fQnSs4PPT+B2YTo4gWiIdIilMgp8jclEQM4yo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAEQjb-TUxF7BUJx-ProK83fciByoLrNfso3URjEnkT2LeVutWQ@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcxJWKKMl/0wuj5nt0edSqPDjVSHgQ==
Thread-topic: [Xen-devel] [PATCH 1 of 3] Enable UEFI BIOS(OVMF) support in Xen-unstable HVM
User-agent: Microsoft-Entourage/12.30.0.110427
On 23/07/2011 16:18, "Bei Guan" <gbtju85@xxxxxxxxx> wrote:

> Do you mean that put the bios_relocate hook in the "else" statement? Just like
> this:
> 
>     if (bios->load) {
>         bios->load(bios);
>     } else {
>         printf("Loading %s ...\n", bios->name);
>         memcpy((void *)bios->bios_address, bios->image,
>                bios->image_size);
> 
>         if (bios->bios_relocate)
>             bios->bios_relocate(); 
>    }

No I mean remove the bios_relocate hook entirely, and modify the rombios
handler to use your new hook instead. It should be quite easy.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel