public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Glauber Costa <glommer@redhat.com>
Cc: kvm@vger.kernel.org, aliguori@us.ibm.com
Subject: Re: [PATCH] align vga rom to 4k boundary.
Date: Sat, 11 Apr 2009 14:14:37 +0300	[thread overview]
Message-ID: <49E07B9D.6060706@redhat.com> (raw)
In-Reply-To: <1239071051-14847-1-git-send-email-glommer@redhat.com>

Glauber Costa wrote:
> Instead of aligning to 2k boundary, as required by the bios,
> align to 4k boundary, as required by kvm memory functions. Without
> this patch, starting kvm with -vga std option fails with:
>
> create_userspace_phys_mem: Invalid argument
> kvm_cpu_register_physical_memory: failed
>
> as described by: https://bugzilla.redhat.com/show_bug.cgi?id=494376
>
> It does not fail with cirrus vga, because it is naturally aligned.
> This problem does not seem to affect upstream qemu.
>
>              exit(1);
>          }
>  	/* Round up vga bios size to the next 2k boundary */
> -	vga_bios_size = (vga_bios_size + 2047) & ~2047;
> +	vga_bios_size = (vga_bios_size + 4095) & ~4095;
>  	option_rom_start = 0xc0000 + vga_bios_size;
>  
>          /* setup basic memory access */
>   

Comment needs updating.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


      reply	other threads:[~2009-04-11 11:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07  2:24 [PATCH] align vga rom to 4k boundary Glauber Costa
2009-04-11 11:14 ` Avi Kivity [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=49E07B9D.6060706@redhat.com \
    --to=avi@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=glommer@redhat.com \
    --cc=kvm@vger.kernel.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