[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] BiteSizedTasks: API conversion
From: |
Su Hang |
Subject: |
Re: [Qemu-devel] BiteSizedTasks: API conversion |
Date: |
Mon, 12 Mar 2018 19:56:19 +0800 (GMT+08:00) |
> -----Original Messages-----
> From: "Peter Maydell" <address@hidden>
> Sent Time: 2018-03-12 19:40:22 (Monday)
> To: "Su Hang" <address@hidden>
> Cc: "thomas huth" <address@hidden>, "QEMU Developers" <address@hidden>
> Subject: Re: [Qemu-devel] BiteSizedTasks: API conversion
>
> On 12 March 2018 at 11:24, Su Hang <address@hidden> wrote:
> list. Any individual conversion of a callsite is probably small
> enough to be bite-sized, but you shouldn't consider "change
> everywhere" to be a single small task.)
> and I think that would be the best thing:
> (1) have address_space_write_rom() which takes the extra
> MemTxAttrs argument and returns the MemTxResult, and
> make cpu_physical_memory_write_rom() just be a trivial
> wrapper around it
> (2) then change the callers to use address_space_write_rom()
> (3) remove the cpu_physical_memory_write_rom() wrapper
>
> Step 2 is the harder part, because really it requires looking at
> the call sites to see what they should do if the memory access
> fails.
>
> thanks
> -- PMM
Thanks for your suggestion, I will work on it, step by step.
Su Hang