All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <dvrabel@cantab.net>
To: Frediano Ziglio <frediano.ziglio@citrix.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] Increment buffer used to read first boot sector in order to accomodate space for 4k sector
Date: Fri, 03 Aug 2012 16:09:55 +0100	[thread overview]
Message-ID: <501BE9C3.1070806@cantab.net> (raw)
In-Reply-To: <7CE799CC0E4DE04B88D5FDF226E18AC2CDFFB08D0D@LONPMAILBOX01.citrite.net>

On 03/08/12 15:50, Frediano Ziglio wrote:
> 
> If a 4k disk is used for first BIOS disk loader corrupt itself.
> 
> This patch increase sector buffer in order to avoid this overflow
> 
> Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
> ---
>  xen/arch/x86/boot/edd.S        |    2 +-
>  xen/arch/x86/boot/trampoline.S |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/xen/arch/x86/boot/edd.S b/xen/arch/x86/boot/edd.S
> index 2c8df8c..1c802a6 100644
> --- a/xen/arch/x86/boot/edd.S
> +++ b/xen/arch/x86/boot/edd.S
> @@ -154,4 +154,4 @@ boot_mbr_signature_nr:
>  boot_mbr_signature:
>          .fill   EDD_MBR_SIG_MAX*8,1,0
>  boot_edd_info:
> -        .fill   512,1,0                         # big enough for a disc sector
> +        .fill   4096,1,0                         # big enough for a disc sector

Can we get a #define for this value?

> diff --git a/xen/arch/x86/boot/trampoline.S b/xen/arch/x86/boot/trampoline.S
> index 4421fc2..bd54c9e 100644
> --- a/xen/arch/x86/boot/trampoline.S
> +++ b/xen/arch/x86/boot/trampoline.S
> @@ -224,6 +224,6 @@ skip_realmode:
>  rm_idt: .word   256*4-1, 0, 0
>  
>  #include "mem.S"
> -#include "edd.S"
>  #include "video.S"
>  #include "wakeup.S"
> +#include "edd.S"

This part looks unnecessary.  Included by mistake?

David

  reply	other threads:[~2012-08-03 15:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-03 14:50 [PATCH] Increment buffer used to read first boot sector in order to accomodate space for 4k sector Frediano Ziglio
2012-08-03 15:09 ` David Vrabel [this message]
2012-08-03 15:22 ` Jan Beulich
2012-08-03 16:43   ` Frediano Ziglio
2012-08-06  7:54     ` Jan Beulich
2012-08-07 12:08   ` Jan Beulich

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=501BE9C3.1070806@cantab.net \
    --to=dvrabel@cantab.net \
    --cc=frediano.ziglio@citrix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.