qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 07/11] pc-bios/s390-ccw: Add code for virtio


From: Thomas Huth
Subject: Re: [Qemu-devel] [PATCH v4 07/11] pc-bios/s390-ccw: Add code for virtio feature negotiation
Date: Wed, 12 Jul 2017 08:56:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0

On 11.07.2017 16:23, Cornelia Huck wrote:
> On Tue, 11 Jul 2017 15:56:33 +0200
> Thomas Huth <address@hidden> wrote:
> 
>> The upcoming virtio-net driver needs to negotiate some features,
>> so we need the possibility to do this in the core virtio code.
>>
>> Signed-off-by: Thomas Huth <address@hidden>
>> ---
>>  pc-bios/s390-ccw/s390-ccw.h |  2 ++
>>  pc-bios/s390-ccw/virtio.c   | 23 +++++++++++++++++------
>>  pc-bios/s390-ccw/virtio.h   |  1 +
>>  3 files changed, 20 insertions(+), 6 deletions(-)
> 
> 
>> diff --git a/pc-bios/s390-ccw/virtio.h b/pc-bios/s390-ccw/virtio.h
>> index d733780..a00a320 100644
>> --- a/pc-bios/s390-ccw/virtio.h
>> +++ b/pc-bios/s390-ccw/virtio.h
>> @@ -251,6 +251,7 @@ struct VDev {
>>      ScsiDevice selected_scsi_device;
>>      uint64_t netboot_start_addr;
>>      uint32_t max_transfer;
>> +    uint32_t guest_features[2];
> 
> Just 'features' might have been a better name, but:

I think it's clearer to call it guest_features ... in case we ever want
to store the host features, too.

>>  };
>>  typedef struct VDev VDev;
>>  
> 
> Reviewed-by: Cornelia Huck <address@hidden>

Thanks!

 Thomas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]