qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Akihiko Odaki <akihiko.odaki@daynix.com>
Cc: qemu-devel@nongnu.org,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"David Hildenbrand" <david@redhat.com>,
	"Peter Xu" <peterx@redhat.com>,
	"Alexander Bulekov" <alxndr@bu.edu>
Subject: Re: [PATCH for 8.0 v2] memory: Prevent recursive memory access
Date: Thu, 16 Mar 2023 13:55:02 +0100	[thread overview]
Message-ID: <ee614c0a-28d3-5101-b51a-33d8acfa7862@redhat.com> (raw)
In-Reply-To: <20230316122430.10529-1-akihiko.odaki@daynix.com>

On 3/16/23 13:24, Akihiko Odaki wrote:
> +static const Object **accessed_region_owners;
> +static size_t accessed_region_owners_capacity;
> +static size_t accessed_region_owners_num;
> +

These should be thread-local variables at least, because the memory 
access API is thread-safe.

Paolo



  reply	other threads:[~2023-03-16 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-16 12:24 [PATCH for 8.0 v2] memory: Prevent recursive memory access Akihiko Odaki
2023-03-16 12:55 ` Paolo Bonzini [this message]
2023-03-16 16:15 ` Alexander Bulekov
2023-03-16 16:32   ` Akihiko Odaki

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=ee614c0a-28d3-5101-b51a-33d8acfa7862@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=akihiko.odaki@daynix.com \
    --cc=alxndr@bu.edu \
    --cc=david@redhat.com \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --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).