public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: kvm@vger.kernel.org, Dirk Teurlings <dirk@upexia.nl>
Subject: Re: graphics card pci passthrough success report
Date: Thu, 13 Sep 2012 07:55:00 +0200	[thread overview]
Message-ID: <50517534.9030304@redhat.com> (raw)
In-Reply-To: <20120912155042.GD778@wantstofly.org>

  Hi,

> - Apply the patches at the end of this mail to kvm and SeaBIOS to
>   allow for more BAR space under 4G.  (The relevant BARs on the
>   graphics cards _are_ 64 bit BARs, but kvm seemed to turn those
>   into 32 bit BARs in the guest.)

Which qemu/seabios versions have you used?

qemu-1.2 (+ bundled seabios) should handle that just fine without
patching.  There is no fixed I/O window any more, all memory space above
lowmem is available for pci, i.e. if you give 2G to your guest
everything above 0x80000000.

And if there isn't enougth address space below 4G (if you assign lot of
memory to your guest so qemu keeps only the 0xe0000000 - 0xffffffff
window free) seabios should try to map 64bit bars above 4G.

> - Apply the hacky patch at the end of this mail to SeaBIOS to
>   always skip initialising the Radeon's option ROMs, or the VM
>   would hang inside the Radeon option ROM if you boot the VM
>   without the default cirrus video.

A better way to handle that would probably be to add an pci passthrough
config option to not expose the rom to the guest.

Any clue *why* the rom doesn't run?

cheers,
  Gerd

  reply	other threads:[~2012-09-13  5:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12 15:50 graphics card pci passthrough success report Lennert Buytenhek
2012-09-13  5:55 ` Gerd Hoffmann [this message]
2012-09-13  8:39   ` Jan Kiszka
2012-09-13  9:40   ` Lennert Buytenhek
2012-09-13 17:05     ` Alex Williamson
2012-09-13 17:22       ` Lennert Buytenhek
2012-11-12 15:19 ` Vince Scott

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=50517534.9030304@redhat.com \
    --to=kraxel@redhat.com \
    --cc=buytenh@wantstofly.org \
    --cc=dirk@upexia.nl \
    --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