qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Bob Breuer <breuerr@mc.net>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: Blue Swirl <blauwirbel@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Memory API: handling unassigned physical memory
Date: Wed, 02 May 2012 10:15:07 -0500	[thread overview]
Message-ID: <4FA14F7B.80404@mc.net> (raw)
In-Reply-To: <4FA0300B.7080001@ilande.co.uk>

On 5/1/2012 1:48 PM, Mark Cave-Ayland wrote:
> On 01/05/12 07:57, Blue Swirl wrote:
> 
>>> Therefore I can't change it to my (modified) sbus_mmio_map() function
>>> because it would break other non-SPARC platforms, and AIUI there is
>>> nothing
>>> in the memory API that allows me to move a subregion to a different
>>> MemoryRegion parent, even if I can get a reference to it with
>>> sysbus_mmio_get_region() after the sysbus_mmio_map() call - or have I
>>> misunderstood something?
>>
>> Sysbus is used as a generic class for motherboard devices, there is an
>> assumption that there is no higher level bus. What we need here is a
>> full blown bus. The translations and mappigs between bus addresses and
>> motherboard addresses should be done in a Sysbus to SBus bridge
>> device, just like PCI host bridges do.
> 
> Since SBus is mapped directly to physical addresses, is this mapping not
> just 1:1? Or does it make sense to re-work all the offsets of the
> various peripherals to be from the base address of the first slot?

It would be nice to have the device offsets be relative to the slot.
User-pluggable sbus devices should be possible.

I've just pushed an update of a dbri sbus device model to github (
https://github.com/breuerr/qemu/commits/dbri-pre2 ).  This device was
built-in to at least the SS-20, but also available as an sbus add-in
card (SunLink ISDN).  There's an fcode rom so it can be probed by OBP,
and if we could get something like "-device SUNW,,DBRIe,slot=1" to work,
then a user could add it to most of the sun4m machine models.

Bob

  reply	other threads:[~2012-05-02 15:15 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4F9D797E.500@ilande.co.uk>
     [not found] ` <4F9D97F3.8080608@codemonkey.ws>
     [not found]   ` <4F9E5028.7010306@redhat.com>
     [not found]     ` <4F9E82C7.10706@ilande.co.uk>
     [not found]       ` <4F9E9268.70408@redhat.com>
     [not found]         ` <CAFEAcA_sKtzmHpFcdhkANLCY0=FuW0Hbof0ifp3uHM66NkWoOQ@mail.gmail.com>
     [not found]           ` <4F9E9906.8060401@ilande.co.uk>
2012-05-01  6:57             ` [Qemu-devel] Memory API: handling unassigned physical memory Blue Swirl
2012-05-01 13:53               ` Anthony Liguori
2012-05-01 18:48               ` Mark Cave-Ayland
2012-05-02 15:15                 ` Bob Breuer [this message]
2012-05-06  8:45                   ` Blue Swirl
2012-05-06  8:41                 ` Blue Swirl
     [not found]             ` <CAFEAcA9VeJWPQ-LU=DvX6vp+=g44-uWda7zokK2NKfLiSkgGAg@mail.gmail.com>
     [not found]               ` <4F9EA2AD.9050208@ilande.co.uk>
2012-05-01  7:10                 ` Blue Swirl
2012-05-01 18:50                   ` Mark Cave-Ayland
2012-05-01 21:21                     ` Andreas Färber
     [not found]           ` <4F9E9569.5000700@redhat.com>
     [not found]             ` <CAFEAcA_wFfsq=PwHAc_r-2bgdwUpSHaTOaL2VPVCJSs9x_JT6A@mail.gmail.com>
2012-05-01 12:39               ` Avi Kivity
2012-05-01 12:41                 ` Peter Maydell
2012-05-01 12:42                   ` Avi Kivity
2012-05-01 12:43                     ` Peter Maydell
2012-05-01 12:48                       ` Avi Kivity
2012-05-01 12:49                         ` Peter Maydell
2012-05-01 13:01                           ` Avi Kivity
2012-05-01 13:50                             ` Anthony Liguori
2012-05-01 14:00                               ` Peter Maydell
2012-05-01 14:06                                 ` Anthony Liguori
2012-05-01 14:20                                   ` Peter Maydell
2012-05-01 15:09                                     ` Anthony Liguori
2012-05-01 15:20                                       ` Peter Maydell
2012-05-01 15:26                                         ` Anthony Liguori
2012-05-01 15:37                                           ` Peter Maydell
2012-05-01 17:21                                             ` Anthony Liguori
2012-05-01 18:57                                         ` Mark Cave-Ayland
2012-05-01 19:03                                           ` Peter Maydell
2012-05-01 14:09                               ` Avi Kivity
2012-05-01 14:15                                 ` Anthony Liguori
2012-05-01 14:26                                   ` Avi Kivity
2012-05-01 15:13                                     ` Anthony Liguori
     [not found]             ` <4F9E96EC.5080005@codemonkey.ws>
2012-05-01 12:41               ` Avi Kivity
     [not found]         ` <4F9E964A.1010408@ilande.co.uk>
2012-05-01 12:46           ` Avi Kivity

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=4FA14F7B.80404@mc.net \
    --to=breuerr@mc.net \
    --cc=blauwirbel@gmail.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=qemu-devel@nongnu.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).