All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alistair Francis <alistair.francis@xilinx.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Alistair Francis <alistair.francis@xilinx.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Peter Crosthwaite <crosthwaitepeter@gmail.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	Christopher Covington <cov@codeaurora.org>
Subject: Re: [Qemu-devel] [PATCH v12 1/2] generic-loader: Add a generic loader
Date: Thu, 29 Sep 2016 17:14:56 -0700	[thread overview]
Message-ID: <CAKmqyKOU4FNweYwzZ9AZpwGY96qttASuEhELf-RGF9rfEuKhvA@mail.gmail.com> (raw)
In-Reply-To: <87lgybhx06.fsf@dusky.pond.sub.org>

On Thu, Sep 29, 2016 at 2:32 AM, Markus Armbruster <armbru@redhat.com> wrote:
> Alistair Francis <alistair.francis@xilinx.com> writes:
>
>> Add a generic loader to QEMU which can be used to load images or set
>> memory values.
>>
>> Internally inside QEMU this is a device. It is a strange device that
>> provides no hardware interface but allows QEMU to monkey patch memory
>> specified when it is created. To be able to do this it has a reset
>> callback that does the memory operations.
>>
>> This device allows the user to monkey patch memory. To be able to do
>> this it needs a backend to manage the datas, the same as other
>> memory-related devices. In this case as the backend is so trivial we
>> have merged it with the frontend instead of creating and maintaining a
>> seperate backend.
>
> Works for me.

Great!

>
>> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
>> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> [...]
>> diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c
>> new file mode 100644
>> index 0000000..fc2fea7
>> --- /dev/null
>> +++ b/hw/core/generic-loader.c
>> @@ -0,0 +1,197 @@
>> +/*
>> + * Generic Loader
>> + *
>> + * Copyright (C) 2014 Li Guang
>> + * Copyright (C) 2016 Xilinx Inc.
>> + * Written by Li Guang <lig.fnst@cn.fujitsu.com>
>> + *
>> + * This program is free software; you can redistribute it and/or modify it
>> + * under the terms of the GNU General Public License as published by the
>> + * Free Software Foundation; either version 2 of the License, or
>> + * (at your option) any later version.
>> + *
>> + * This program is distributed in the hope that it will be useful, but WITHOUT
>> + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
>> + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
>> + * for more details.
>> + */
>
> The text you added to the commit message would make a lovely comment
> here.  Please add it.

Adding it in.

>
>> +
>> +#include "qemu/osdep.h"
>> +#include "qom/cpu.h"
>> +#include "hw/sysbus.h"
>> +#include "sysemu/dma.h"
>> +#include "hw/loader.h"
>> +#include "qapi/error.h"
>> +#include "hw/core/generic-loader.h"
> [...]
>
> Thank you very much for processing my much-too-late design review
> graciously.

No worries

>
> Acked-by: Markus Armbruster <armbru@redhat.com>

Thanks!

Alistair

>

  reply	other threads:[~2016-09-30  0:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 22:44 [Qemu-devel] [PATCH v12 0/2] Add a generic loader Alistair Francis
2016-09-28 22:45 ` [Qemu-devel] [PATCH v12 1/2] generic-loader: " Alistair Francis
2016-09-29  9:32   ` Markus Armbruster
2016-09-30  0:14     ` Alistair Francis [this message]
2016-09-28 22:45 ` [Qemu-devel] [PATCH v12 2/2] docs: Add a generic loader explanation document Alistair Francis
2016-09-29  9:24   ` Markus Armbruster
2016-09-30  0:25     ` Alistair Francis
2016-09-30  5:36       ` Markus Armbruster
2016-10-03 17:28         ` Alistair Francis
2016-10-04  7:56           ` Markus Armbruster
2016-10-04 15:45             ` Alistair Francis
2016-10-05  7:44               ` Markus Armbruster
2016-10-05 21:31                 ` Alistair Francis
2016-09-29  0:53 ` [Qemu-devel] [PATCH v12 0/2] Add a generic loader no-reply
2016-09-29  9:25   ` Markus Armbruster
2016-09-30  0:00     ` Peter Maydell
2016-09-30  0:09       ` Alistair Francis
2016-09-30  0:25         ` Peter Maydell
2016-09-30  0:27         ` Alistair Francis
2016-09-30  1:53     ` Fam Zheng

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=CAKmqyKOU4FNweYwzZ9AZpwGY96qttASuEhELf-RGF9rfEuKhvA@mail.gmail.com \
    --to=alistair.francis@xilinx.com \
    --cc=armbru@redhat.com \
    --cc=cov@codeaurora.org \
    --cc=crosthwaitepeter@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.