xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: Jan Beulich <JBeulich@suse.com>, xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] x86/EDD: check MBR for BIOS magic before considering signature valid
Date: Wed, 30 May 2012 17:48:00 +0100	[thread overview]
Message-ID: <CBEC0DD0.3487C%keir.xen@gmail.com> (raw)
In-Reply-To: <4FC65A930200007800086F39@nat28.tlf.novell.com>

On 30/05/2012 16:36, "Jan Beulich" <JBeulich@suse.com> wrote:

> Signed-off-by: Jan Beulich <JBeulich@suse.com>

Acked-by: Keir Fraser <keir@xen.org>

> --- a/xen/arch/x86/boot/edd.S
> +++ b/xen/arch/x86/boot/edd.S
> @@ -53,12 +53,16 @@ edd_mbr_sig_read:
>          jc      edd_mbr_sig_done                # on failure, we're done.
>          cmpb    $0, %ah                         # some BIOSes do not set CF
>          jne     edd_mbr_sig_done                # on failure, we're done.
> +        cmpw    $0xaa55, bootsym(boot_edd_info)+0x1fe
> +        jne     .Ledd_mbr_sig_next
>          movl    bootsym(boot_edd_info)+EDD_MBR_SIG_OFFSET,%eax
>          movb    %dl, (%bx)                      # store BIOS drive number
>          movl    %eax, 4(%bx)                    # store signature from MBR
>          incb    bootsym(boot_mbr_signature_nr)  # note that we stored
> something
> -        incb    %dl                             # increment to next device
>          addw    $8, %bx                         # increment sig buffer ptr
> +.Ledd_mbr_sig_next:
> +        incb    %dl                             # increment to next device
> +        jz      edd_mbr_sig_done
>          cmpb    $EDD_MBR_SIG_MAX,bootsym(boot_mbr_signature_nr)
>          jb      edd_mbr_sig_read
>  edd_mbr_sig_done:
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

      reply	other threads:[~2012-05-30 16:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-30 15:36 [PATCH] x86/EDD: check MBR for BIOS magic before considering signature valid Jan Beulich
2012-05-30 16:48 ` Keir Fraser [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CBEC0DD0.3487C%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=JBeulich@suse.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).