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

Re: [Xen-devel] [PATCH 3/5] vtdt: Modify vlapic code to add vtdt support


  • To: "Wei, Gang" <gang.wei@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Tue, 14 Dec 2010 09:59:09 +0000
  • Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
  • Delivery-date: Tue, 14 Dec 2010 02:01:56 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=HsdNYui5/dONlYzK9HI+mxy0H1rBp/yyJ0ICHaUA/Sgp5x5YqW4RcmOE0RLPDISzHB aGWfZOtfn0lkaRUx1sFLYEr+7mA3i7dBwXw42GogNga9FZ7SGxTNiV02TIO4XgkFk35v 9GtriKsERHotlimQ0E9tFz4sl8Nq9rdoTJdHo=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcubPslPXD79XKNoRpanX8il5iAsXgAIq7U+AAF2X3AAARpTFgAAmehgAAHaoLM=
  • Thread-topic: [Xen-devel] [PATCH 3/5] vtdt: Modify vlapic code to add vtdt support

On 14/12/2010 09:13, "Wei, Gang" <gang.wei@xxxxxxxxx> wrote:

> Keir Fraser wrote on 2010-12-14:
>>>>> @@ -265,6 +265,7 @@ struct hvm_hw_lapic {
>>>>>      uint64_t             apic_base_msr;
>>>>>      uint32_t             disabled; /* VLAPIC_xx_DISABLED */
>>>>>      uint32_t             timer_divisor;
>>>>> +    uint64_t             tdt_msr;
>>>>>  };
>>>> 
>>>> Is this backward compatible with old HVM save images?
>>> 
>>> I am not sure about this. If it isn't, would you accept to simply
>>> add another data trunk for TDT msr?
>> 
>> That's Tim's call. I would personally prefer for Xen to accept
>> truncated chunks, and extend them with sensible 'old save image' defaults,
>> such as all-zeroes.
>> That would be a generic solution to this case which will be reusable
>> in future, and avoid needlessly creating extra chunk types just for
>> backward compatibility reasons.
> 
> Ok. Let's wait for Tim to answer the call.

Well I propose the attached patch, and then you can use
hvm_load_entry_zeroextend() in vlapic.c. I would split this patch into two
pieces if I apply it (code movement first, then the zeroextend logic).

It needs an Ack from Tim however.

 -- Keir

> I just found some code in xen/hvm/save.h: _hvm_check_entry()
>     if ( type != d->typecode || len != d->length )
>     {
>         gdprintk(XENLOG_WARNING,
>                  "HVM restore mismatch: expected type %u length %u, "
>                  "saw type %u length %u\n", type, len, d->typecode,
> d->length);
>         return -1;
>     }
> 
> So I am assuming it would not be backward compatible with old HVM save images.
> 
> Jimmy



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.