Hello,
I'm new to QEMU and kinda new to driver & QEMU programming in general, so
please excuse my questions...
I want to develop a new QEMU i2c device (qemu x86), that would get/send
data to an application running on the guest. Thing is : I need these data
onto the host, as a daemon will send/get
Thanks for all your answers.
I understand that what I want to achieve seemed pretty confused. I will try
to clarify :
On real hardware, I have an I2C device used to get temperatures, pressure
etc... and it works on x86 and there were no QEMU virtualized hardware
corresponding.
I don't really nee
2014-02-17 10:19 GMT+01:00 Paolo Bonzini :
> Il 17/02/2014 09:35, Alex David ha scritto:
>
> - Are there solutions that seems more adapted to my case ? Like using
>> USB-I2C bridge ?
>>
>
> From an upstream point of view, a host passthrough device pair (one object
>
2014-02-17 11:38 GMT+01:00 Paolo Bonzini :
> Il 17/02/2014 11:01, Alex David ha scritto:
>
> I indeed don't use paravirtualization.
>>
>
> Virtio _is_ paravirtualization. :)
>
>
Ok, now that seems much more understandable... I missed that point ha.
>
>
>
>
>>
>> I'm emulating a bunch of sensors/actuators.
>>>
>>> If I virtualize my sensors and attach them to the i2c-dev with -device,
>>> how do I get those data on the host then ?
>>>
>>
>> It depends on your use case.
>>
>> It could be that you can make them return a constant value.
>>
>> Othe
2014-02-17 14:19 GMT+01:00 Paolo Bonzini :
> Il 17/02/2014 14:11, Alex David ha scritto:
>
> I've tried using tmp105. As my linux isn't 64bits, i'm using
>> qemu-system-i386... It crashes my computer when I use it with my linux
>> image (it's
2014-02-17 15:30 GMT+01:00 Paolo Bonzini :
> So you cannot configure the three devices on the same bus, with three
> different addresses?
Each sensor is different on the original hardware, they are connected on
different busses. As my guest apps are calling i2c-1, i2c-2, ,i2c-N
(and I can't
2014-02-17 17:11 GMT+01:00 Paolo Bonzini :
> Il 17/02/2014 16:33, Alex David ha scritto:
>
> If you need more than one bus, you need a new device exposing the
>> I2C bus, besides the new sensor devices. USB-I2C could be one such
>> device.
>>
>> S
Ok, thank you very much for your help then. I'm gonna spend some time on
this.
If qemu-dev / you are interested in what I've done later, I'll send a new
mail.
2014-02-18 14:05 GMT+01:00 Paolo Bonzini :
> Il 18/02/2014 13:48, Alex David ha scritto:
>
>>
>>