Re: [Qemu-devel] [PATCH v3] chardev/char-i2c: Implement Linux I2C character device

2019-05-16 Thread Ernest Esene
On Wed, May 15, 2019 at 03:17:12PM +0100, Stefan Hajnoczi wrote: > On Fri, May 10, 2019 at 07:04:10PM +0100, Ernest Esene wrote: > > Add support for Linux I2C character device for I2C device passthrough > > For example: > > -chardev i2c,address=0x46,path=/dev/i2c-N,id=i2c-

[Qemu-devel] [PATCH v3] chardev/char-i2c: Implement Linux I2C character device

2019-05-10 Thread Ernest Esene
for writing and testing software for I2C devices. Signed-off-by: Ernest Esene --- v3: * change licence to GPLv2+ * use non blocking IO for the chardev * change "address" to QEMU_OPT_NUMBER * update qemu-options.hx --- v2: * Fixed errors * update "MAINTAINERS" fi

Re: [Qemu-devel] [PATCH v2] chardev/char-i2c: Implement Linux I2C character device

2019-05-10 Thread Ernest Esene
On Thu, May 09, 2019 at 02:00:56PM +0100, Stefan Hajnoczi wrote: > On Sat, May 04, 2019 at 07:11:19PM +0100, Ernest Esene wrote: > > Add support for Linux I2C character device for I2C device passthrough > > For example: > > -chardev linux-i2c,address=0x46,path=/dev

Re: [Qemu-devel] [PATCH v2] chardev/char-i2c: Implement Linux I2C character device

2019-05-10 Thread Ernest Esene
On Tue, May 07, 2019 at 07:33:09PM +0200, Markus Armbruster wrote: > Ernest Esene writes: > > > Add support for Linux I2C character device for I2C device passthrough > > For example: > > -chardev linux-i2c,address=0x46,path=/dev/i2c-N,id=i2c-chardev > > &

[Qemu-devel] [PATCH v2] chardev/char-i2c: Implement Linux I2C character device

2019-05-04 Thread Ernest Esene
Add support for Linux I2C character device for I2C device passthrough For example: -chardev linux-i2c,address=0x46,path=/dev/i2c-N,id=i2c-chardev Signed-off-by: Ernest Esene --- v2: * Fix errors * update "MAINTAINERS" file. --- MAINTAINERS| 6 ++ chardev/Mak

Re: [Qemu-devel] [PATCH] chardev/char-i2c: Implement Linux I2C character device

2019-05-03 Thread Ernest Esene
On Fri, May 03, 2019 at 03:24:06PM -0500, Eric Blake wrote: > On 5/3/19 2:31 PM, Ernest Esene wrote: > > Add support for Linux I2C character device for I2C device passthrough > > For example: > > -chardev linux-i2c,address=0x46,path=/dev/i2c-N,id=i2c-chardev > > >

[Qemu-devel] [PATCH] chardev/char-i2c: Implement Linux I2C character device

2019-05-03 Thread Ernest Esene
Add support for Linux I2C character device for I2C device passthrough For example: -chardev linux-i2c,address=0x46,path=/dev/i2c-N,id=i2c-chardev Signed-off-by: Ernest Esene --- chardev/Makefile.objs | 1 + chardev/char-i2c.c | 142

[Qemu-devel] [PATCH v3 3/3] Categorize devices: iommu

2019-04-01 Thread Ernest Esene
Set category and description for iommu devices. Signed-off-by: Ernest Esene --- v3: * set category and describe smmuv3 as suggested by Eric v2: * split into separate patches --- hw/arm/smmuv3.c | 2 ++ hw/i386/amd_iommu.c | 2 ++ hw/i386/intel_iommu.c | 2 ++ 3 files changed, 6

[Qemu-devel] [PATCH v3 2/3] Categorize devices: i82374

2019-04-01 Thread Ernest Esene
Set category and description for iommu devices Signed-off-by: Ernest Esene --- v3: * remove user_creatable v2: * split into separate patches --- hw/dma/i82374.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c index 892f655a7e..aeb3da8ba6 100644

[Qemu-devel] [PATCH v3 1/3] Categorize devices: DIMM

2019-04-01 Thread Ernest Esene
Set category and describe DIMM devices Signed-off-by: Ernest Esene --- v3: * add MEMORY device category * set category to MEMORY v2: * split into separate patches --- hw/mem/nvdimm.c| 1 + hw/mem/pc-dimm.c | 1 + include/hw/qdev-core.h | 1 + qdev-monitor.c | 1 + 4

[Qemu-devel] [PATCH v2] Replace calls to object_child_foreach() with object_child_foreach_recursive()

2019-04-01 Thread Ernest Esene
Replace calls to object_child_foreach() with object_child_foreach_recursive() when applicable: nvdimm_device_list, nmi_monitor_handle, find_sysbus_device, pc_dimm_slot2bitmap, build_dimm_list. Signed-off-by: Ernest Esene --- v2: * applied changes suggested by Paolo --- hw/acpi/nvdimm.c

Re: [Qemu-devel] [PATCH] Replace calls to object_child_foreach() with object_child_foreach_recursive()

2019-03-31 Thread Ernest Esene
On Fri, Mar 29, 2019 at 10:47:22AM +, Stefan Hajnoczi wrote: > On Tue, Mar 26, 2019 at 10:12:56AM +0100, Paolo Bonzini wrote: > > On 26/03/19 08:43, Stefan Hajnoczi wrote: > > > On Sun, Mar 10, 2019 at 02:39:13AM +0100, Ernest Esene wrote: > > >> Replace

Re: [Qemu-devel] [PATCH v2 3/6] Categorize devices: DIMM

2019-03-27 Thread Ernest Esene
On Wed, Mar 27, 2019 at 01:47:48PM +0100, Philippe Mathieu-Daudé wrote: > Le mer. 27 mars 2019 13:32, Ernest Esene a écrit : > > > Set category and describe DIMM devices > > > > Signed-off-by: Ernest Esene > > > > --- > > v2: > > * split into se

[Qemu-devel] [PATCH v2 6/6] Categorize devices: iommu

2019-03-27 Thread Ernest Esene
Set category and description for iommu devices Signed-off-by: Ernest Esene --- v2: * split into separate patches --- hw/i386/amd_iommu.c | 2 ++ hw/i386/intel_iommu.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index 6eabdf9917

[Qemu-devel] [PATCH v2 5/6] Categorize devices: IGD passthrough ISA bridge

2019-03-27 Thread Ernest Esene
Set category for the device Signed-off-by: Ernest Esene --- v2: * split into separate 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 8ad8e885c6..03a9cb8af3 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c

[Qemu-devel] [PATCH v2 4/6] Categorize devices: i82374

2019-03-27 Thread Ernest Esene
Set category and describe the i82374 device Signed-off-by: Ernest Esene --- v2: * split into separate patches --- hw/dma/i82374.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c index 892f655a7e..5b42dd1bd4 100644 --- a/hw/dma/i82374.c +++ b/hw/dma

[Qemu-devel] [PATCH v2 3/6] Categorize devices: DIMM

2019-03-27 Thread Ernest Esene
Set category and describe DIMM devices Signed-off-by: Ernest Esene --- v2: * split into separate patches --- hw/mem/nvdimm.c | 1 + hw/mem/pc-dimm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c index bf2adf5e16..a334dbe1f5 100644 --- a/hw/mem

[Qemu-devel] [PATCH v2 2/6] Categorize devices: TPM

2019-03-27 Thread Ernest Esene
Set category and describe TPM device Signed-off-by: Ernest Esene --- v2: * split into separate patch --- hw/tpm/tpm_tis.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c index fd183e8deb..368242 100644 --- a/hw/tpm/tpm_tis.c +++ b/hw/tpm

[Qemu-devel] [PATCH v2 1/6] Categorize devices: IPMI

2019-03-27 Thread Ernest Esene
Set category and describe IPMI devices Signed-off-by: Ernest Esene --- v2: * split into different patches * change category and description for management controllers --- hw/ipmi/ipmi_bmc_extern.c | 2 ++ hw/ipmi/ipmi_bmc_sim.c| 2 ++ hw/ipmi/isa_ipmi_bt.c | 2 ++ hw/ipmi

Re: [Qemu-devel] [PATCH] Categorize devices

2019-03-27 Thread Ernest Esene
On Tue, Mar 26, 2019 at 03:49:04PM -0300, Eduardo Habkost wrote: > On Tue, Mar 26, 2019 at 07:43:51PM +0100, Hervé Poussineau wrote: > > Le 24/03/2019 à 19:05, Ernest Esene a écrit : > > > Categorize devices in "uncategorised devices" section > > >

Re: [Qemu-devel] [PATCH] Categorize devices

2019-03-27 Thread Ernest Esene
On Mon, Mar 25, 2019 at 07:42:27PM -0500, Corey Minyard wrote: > On Sun, Mar 24, 2019 at 07:05:23PM +0100, Ernest Esene wrote: > > Categorize devices in "uncategorised devices" section > > This patch is based on BiteSizedTask. > > > > Signed-off-by: Ernest

[Qemu-devel] [PATCH] Categorize devices

2019-03-24 Thread Ernest Esene
Categorize devices in "uncategorised devices" section This patch is based on BiteSizedTask. Signed-off-by: Ernest Esene --- hw/dma/i82374.c | 2 ++ hw/i386/amd_iommu.c | 2 ++ hw/i386/intel_iommu.c | 2 ++ hw/i386/pc_piix.c | 1 + hw/ipmi/ipmi_bmc_extern.c

[Qemu-devel] [PATCH] Replace calls to object_child_foreach() with object_child_foreach_recursive()

2019-03-09 Thread Ernest Esene
Replace calls to object_child_foreach() with object_child_foreach_recursive() when applicable: nvdimm_device_list, nmi_monitor_handle, find_sysbus_device, pc_dimm_slot2bitmap, build_dimm_list. Signed-off-by: Ernest Esene --- hw/acpi/nvdimm.c | 5 +++-- hw/core/sysbus.c | 2