qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: patches@linaro.org, Aurelien Jarno <aurelien@aurel32.net>,
	Yongbok Kim <yongbok.kim@mips.com>,
	Paul Burton <paul.burton@mips.com>
Subject: Re: [Qemu-devel] [PATCH 0/2] Don't abort on writes to ROMs
Date: Thu, 14 Dec 2017 12:27:28 +0100	[thread overview]
Message-ID: <d6ca149d-0c1d-cb5b-9691-d9a8d84d4093@redhat.com> (raw)
In-Reply-To: <1513187549-2435-1-git-send-email-peter.maydell@linaro.org>

On 13/12/2017 18:52, Peter Maydell wrote:
> Currently we set up the io_mem_rom special memory region using the
> unassigned_mem_ops structure; this is then used when a guest tries to
> write to ROM.  This is incorrect, because the behaviour of unassigned
> memory may be different from that of ROM for writes.  In particular,
> on some architectures writing to unassigned memory generates a guest
> exception, whereas writing to ROM is generally ignored.
> 
> This patchset creates a separate readonly_mem_ops for handling the
> writes to readonly memory, which just ignores them.
> 
> Patch 2 removes a workaround in the MIPS boston board which
> is no longer needed once the core memory system is fixed.
> 
> Disclaimer: I haven't tested the mips change beyond 'make check'
> (I tested the exec patch with a temporary hack to the Arm
> virt board), but I believe it to be correct...
> 
> thanks
> -- PMM
> 
> 
> Peter Maydell (2):
>   exec: Don't reuse unassigned_mem_ops for io_mem_rom
>   hw/mips/boston: Remove workaround for writes to ROM aborting
> 
>  exec.c           | 34 +++++++++++++++++++++++++++++++++-
>  hw/mips/boston.c | 14 ++------------
>  2 files changed, 35 insertions(+), 13 deletions(-)
> 

Queued for 2.12, thanks.

Paolo

      parent reply	other threads:[~2017-12-14 11:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-13 17:52 [Qemu-devel] [PATCH 0/2] Don't abort on writes to ROMs Peter Maydell
2017-12-13 17:52 ` [Qemu-devel] [PATCH 1/2] exec: Don't reuse unassigned_mem_ops for io_mem_rom Peter Maydell
2017-12-13 17:52 ` [Qemu-devel] [PATCH 2/2] hw/mips/boston: Remove workaround for writes to ROM aborting Peter Maydell
2017-12-14 11:27 ` Paolo Bonzini [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=d6ca149d-0c1d-cb5b-9691-d9a8d84d4093@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=aurelien@aurel32.net \
    --cc=patches@linaro.org \
    --cc=paul.burton@mips.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=yongbok.kim@mips.com \
    /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).