All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lan Tianyu <tianyu.lan@intel.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: qemu-devel@nongnu.org, chao.gao@intel.com, kevin.tian@intel.com,
	pbonzini@redhat.com, rth@twiddle.net, mst@redhat.com
Subject: Re: [Qemu-devel] [RFC PATCH 1/4] I440: Allow adding sysbus devices with -device on I440
Date: Tue, 21 Mar 2017 08:36:04 +0800	[thread overview]
Message-ID: <dc4f31ad-ab68-1576-5e75-f49447be8f6f@intel.com> (raw)
In-Reply-To: <20170320194953.GF2811@thinpad.lan.raisama.net>

Hi Eduardo:
	Thanks for your review.
On 2017年03月21日 03:49, Eduardo Habkost wrote:
> On Fri, Mar 17, 2017 at 07:29:14PM +0800, Lan Tianyu wrote:
>> From: Chao Gao <chao.gao@intel.com>
>>
>> xen-viommu will be a sysbus device and the device model will
>> be enabled via "-device" parameter.
>>
>> Signed-off-by: Chao Gao <chao.gao@intel.com>
>> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
> 
> I'm worried about the bugs we may expose by accepting all the
> other sysbus devices in the command-line in addition to
> xen-viommu.
> 
> I am working on a RFC to replace "has_dynamic_sysbus" with a
> whitelist of sysbus device classes. This way we could enable only
> xen-viommu on i440fx, instead of suddenly enabling all sysbus
> devices just because of xen-viommu.

That sounds reasonable. Thanks for the job and we rebase on your patches.



> 
>> ---
>>  hw/i386/pc_piix.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
>> index a07dc81..3289593 100644
>> --- a/hw/i386/pc_piix.c
>> +++ b/hw/i386/pc_piix.c
>> @@ -436,6 +436,7 @@ static void pc_i440fx_machine_options(MachineClass *m)
>>      m->hot_add_cpu = pc_hot_add_cpu;
>>      m->default_machine_opts = "firmware=bios-256k.bin";
>>      m->default_display = "std";
>> +    m->has_dynamic_sysbus = true;
>>  }
>>  
>>  static void pc_i440fx_2_7_machine_options(MachineClass *m)
>> -- 
>> 1.8.3.1
>>
> 


-- 
Best regards
Tianyu Lan

  reply	other threads:[~2017-03-21  0:43 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-17 11:29 [Qemu-devel] [RFC PATCH 0/4] Qemu: Add Xen vIOMMU support Lan Tianyu
2017-03-17 11:29 ` Lan Tianyu
2017-03-17 11:29 ` [Qemu-devel] [RFC PATCH 1/4] I440: Allow adding sysbus devices with -device on I440 Lan Tianyu
2017-03-20 19:49   ` Eduardo Habkost
2017-03-21  0:36     ` Lan Tianyu [this message]
2017-03-17 11:29 ` [Qemu-devel] [RFC PATCH 2/4] Xen: add a dummy vIOMMU to create/destroy vIOMMU in Xen Lan Tianyu
2017-03-17 11:29   ` Lan Tianyu
2017-03-30 16:24   ` [Qemu-devel] " Anthony PERARD
2017-03-30 16:24     ` Anthony PERARD
2017-03-30 20:19     ` [Qemu-devel] " Chao Gao
2017-03-30 20:19       ` Chao Gao
2017-03-17 11:29 ` [Qemu-devel] [RFC PATCH 3/4] xen-pt: bind/unbind interrupt remapping format MSI Lan Tianyu
2017-03-17 11:29   ` Lan Tianyu
2017-03-30 16:51   ` [Qemu-devel] " Anthony PERARD
2017-03-30 16:51     ` Anthony PERARD
2017-03-30 20:31     ` [Qemu-devel] " Chao Gao
2017-03-30 20:31       ` Chao Gao
2017-03-17 11:29 ` [Qemu-devel] [RFC PATCH 4/4] msi: taking interrupt format into consideration during judging a pirq is binded with a event channel Lan Tianyu
2017-03-17 11:29   ` Lan Tianyu
2017-03-30 17:29   ` [Qemu-devel] " Anthony PERARD
2017-03-30 17:29     ` Anthony PERARD
2017-03-30 20:38     ` [Qemu-devel] " Chao Gao
2017-03-30 20:38       ` Chao Gao
2017-03-17 11:46 ` [Qemu-devel] [RFC PATCH 0/4] Qemu: Add Xen vIOMMU support no-reply
2017-03-17 11:46   ` no-reply
2017-03-17 14:48 ` Paolo Bonzini
2017-03-17 14:48   ` Paolo Bonzini
2017-03-17 20:57   ` [Qemu-devel] " Stefano Stabellini
2017-03-17 20:57     ` Stefano Stabellini
2017-03-20  2:40   ` [Qemu-devel] " Lan Tianyu
2017-03-20  2:40     ` Lan Tianyu
2017-03-20 11:38     ` [Qemu-devel] " Paolo Bonzini
2017-03-20 11:38       ` Paolo Bonzini
2017-03-20 14:17       ` [Qemu-devel] [Xen-devel] " Roger Pau Monné
2017-03-20 14:17         ` Roger Pau Monné
2017-03-20 14:35         ` [Qemu-devel] [Xen-devel] " Paolo Bonzini
2017-03-20 14:35           ` Paolo Bonzini
2017-03-21  1:13       ` [Qemu-devel] " Lan Tianyu
2017-03-21  1:13         ` Lan Tianyu

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=dc4f31ad-ab68-1576-5e75-f49447be8f6f@intel.com \
    --to=tianyu.lan@intel.com \
    --cc=chao.gao@intel.com \
    --cc=ehabkost@redhat.com \
    --cc=kevin.tian@intel.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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.