qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/8] exec: move rcu_read_lock/unlock to address_


From: Jan Kiszka
Subject: Re: [Qemu-devel] [PATCH 2/8] exec: move rcu_read_lock/unlock to address_space_translate callers
Date: Thu, 19 Mar 2015 14:27:36 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

On 2015-03-18 14:21, Paolo Bonzini wrote:
> @@ -2591,9 +2596,12 @@ void *address_space_map(AddressSpace *as,
>      }
>  
>      l = len;
> +    rcu_read_lock();
>      mr = address_space_translate(as, addr, &xlat, &l, is_write);
> +
>      if (!memory_access_is_direct(mr, is_write)) {
>          if (atomic_xchg(&bounce.in_use, true)) {

Doesn't apply due to differences in the line above.

What is this patch based on? Do you have a public branch where I can
find the series and its dependencies?

> +            rcu_read_unlock();
>              return NULL;
>          }
>          /* Avoid unbounded allocations */

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux



reply via email to

[Prev in Thread] Current Thread [Next in Thread]