On Wed, Apr 11, 2012 at 9:45 PM, Paolo Bonzini <pbonz...@redhat.com> wrote:
> Il 11/04/2012 21:10, Anthony Liguori ha scritto:
>> On 04/11/2012 02:08 PM, Paolo Bonzini wrote:
>>> Il 11/04/2012 19:25, Anthony Liguori ha scritto:
>>>>>
>>>>> Off the top of my head: issues with v5:
>>>>> polluting global namespace, must scope names
>>>>> appropriately with vmxnet_ VMXNET_ unless they have file scope.
>>>>> Don't use names with _ followed by an upper case letter
>>>>> or that star with two underscores. Don't mix underscores and mixed
>>>>> case.
>>>>> Don't stick any new types in net.c/pci.c - new devices should use
>>>>> -device
>>>>> not -net. Global stuff like ethernet header size
>>>>> should move to central place instead of copy paste.
>>>>
>>>> I'd like to see qtest test cases for this too.
>>>
>>> I think as things stand it is a bit too much to request this.  You're
>>> basically asking to write a libos.
>>
>> The only functionality you need is PCI device enumeration which is
>> pretty much dead simple.
>>
>> What other functions would you need a libos for?
>
> You need mocks for a network device.

Starting to get off-topic but net/socket.c already provides an easy
packet injection/capture interface that can be used for testing.

Stefan

Reply via email to