Skip to contentSkip to conversation

Xen 4.2 TODO / Release Plan

DISCUSSION Ian Campbell 4 participants 12 messages Jul 30, 2012 – Aug 8, 2012

lore
Share & tools
lore
#0 lore raw

Plan for a 4.2 release:
http://lists.xen.org/archives/html/xen-devel/2012-03/msg00793.html

The time line is as follows:

19 March -- TODO list locked down
2 April -- Feature Freeze
<< WE ARE HERE
When It's Ready -- First release candidate << THIS WEEK
Weekly -- RCN+1 until release

The updated TODO list follows.

There are lots of things completed this week. Therefore we intend to release rc1 this week.

The outstanding known issues are relatively minor and will be resolved after rc1.

hypervisor, blockers:

* [BUG] EFI binaries installed to /efi instead of under /usr/lib after LIB_DIR definition moved to configure script. (Matt Wilson, DONE)

tools, blockers:

* libxl stable API -- we would like 4.2 to define a stable API which downstream's can start to rely on not changing. Aspects of this are:

* Interfaces which may need to be async:

* libxl_device_{disk,nic,vkb,add,pci}_add (and remove). (Roger Pau Monné, DONE)

* libxl_device_pci_add (and remove). (Ian C, patch posted)

* LIBXL_NIC_TYPE enum names are confusing. (Roger, DONE)

* xl compatibility with xm:

* [BUG] cannot create an empty CD-ROM drive on HVM guest, reported by Fabio Fantoni in <[email protected]> (Ian C & Ian J, DONE)

* does not automatically try to select a (set of) node(s) on which to create a VM and pin its vcpus there. (Dario Faggioli, DONE)

* [CHECK] More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.

* calling hotplug scripts from xl (Linux and NetBSD) (Roger Pau Monné, DONE)

* Block script support (Ian C, patch sent, resend pending)

* [CHECK] Confirm that migration from Xen 4.1 -> 4.2 works.

* libxl to reject attempts to migrate a domain using upstream qemu, due to lack of log dirty support (Ian C, DONE)

* [BUG] parameter 'maxvcpus' causes hvm guest boots up with wrong vcpu number http://bugzilla.xen.org/bugzilla/show_bug.cgi?id=1825
(<E4558C0C96688748837EB1B05BEED75A0FD5574A@SHSMSX102.ccr.corp.intel.com>) ("Zhang, Yang Z", DONE)

* [BUG] libxl__devices_destroy has a race against plugging/unplugging devices to the domain which can result in over- or under-flowing the aodevs array (Roger Pau Monné, Ian Jackson, patches sent)

hypervisor, nice to have:

* vMCE save/restore changes, to simplify migration 4.2->4.3 with new vMCE in 4.3. (Jinsong Liu, Jan Beulich)

tools, nice to have:

* xl compatibility with xm:

* None

* libxl stable API

* libxl_wait_for_free_memory/libxl_wait_for_memory_target. Interface needs an overhaul, related to locking/serialization over domain create. IanJ to add note about this interface being substandard but otherwise defer to 4.3.

* Interfaces which may need to be async:

* libxl_cdrom_insert. (IanC, DONE)

* xl.cfg(5) documentation patch for qemu-upstream videoram/videomem support:
http://lists.xen.org/archives/html/xen-devel/2012-05/msg00250.html
qemu-upstream doesn't support specifying videomem size for the HVM guest cirrus/stdvga. (but this works with qemu-xen-traditional). (Pasi Kärkkäinen)

* [BUG] long stop during the guest boot process with qcow image, reported by Intel: http://bugzilla.xen.org/bugzilla/show_bug.cgi?id=1821

* [BUG] vcpu-set doesn't take effect on guest, reported by Intel:
http://bugzilla.xen.org/bugzilla/show_bug.cgi?id=1822

* Load blktap driver from xencommons initscript if available, thread at:
<db614e92faf743e20b3f.1337096977@kodo2>. To be fixed more properly in 4.3. (Patch posted, discussion, plan to take simple xencommons patch for 4.2 and revist for 4.3. Ping sent)

* [BUG] xl allows same PCI device to be assigned to multiple guests. http://bugzilla.xen.org/bugzilla/show_bug.cgi?id=1826
(<E4558C0C96688748837EB1B05BEED75A0FD5574A@SHSMSX102.ccr.corp.intel.com>)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 2 lines · Ian Campbell

* vMCE save/restore changes, to simplify migration 4.2->4.3 with new vMCE in 4.3. (Jinsong Liu, Jan Beulich)

Where are we with this?

Is it still a viable candidate for 4.2, now that we have reached rc1 (almost 2)?

#2 lore raw
Quoted 8 lines · Ian Campbell
Quoted 2 lines · Ian Campbell

* vMCE save/restore changes, to simplify migration 4.2->4.3 with new vMCE in 4.3. (Jinsong Liu, Jan Beulich)

Where are we with this?

Is it still a viable candidate for 4.2, now that we have reached rc1 (almost 2)?

Didn't we already take the trivial patch that will ease the transition to 4.3?

-- Keir

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 6 lines · Keir Fraser
Quoted 4 lines · Ian Campbell
Quoted 2 lines · Ian Campbell

* vMCE save/restore changes, to simplify migration 4.2->4.3 with new vMCE in 4.3. (Jinsong Liu, Jan Beulich)

Quoted 7 lines
Quoted 4 lines

Where are we with this?

Is it still a viable candidate for 4.2, now that we have reached rc1 (almost 2)?

Didn't we already take the trivial patch that will ease the transition to 4.3?

Possibly, in which case I can scratch it off the list.

Ian.

#4 lore raw
In reply to Keir Fraser
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 4 lines · Ian Campbell
Quoted 2 lines · Ian Campbell

* vMCE save/restore changes, to simplify migration 4.2->4.3 with new vMCE in 4.3. (Jinsong Liu, Jan Beulich)

Quoted 7 lines
Quoted 4 lines

Where are we with this?

Is it still a viable candidate for 4.2, now that we have reached rc1 (almost 2)?

Didn't we already take the trivial patch that will ease the transition to 4.3?

We took one necessary patch, but I think at least the second one of the recently posted series would also be needed. And the really important patch for migration forward compatibility was patch 5 in that series, yet I wouldn't want to take patches 3 and 4 for 4.2.

In any case, the series is in need of resubmission anyway. Perhaps (if that's possible, I didn't check in too much detail) reordering patch 5 could be done at once.

Jan

#5 lore raw
Quoted 22 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 4 lines · Ian Campbell
Quoted 2 lines · Ian Campbell

* vMCE save/restore changes, to simplify migration 4.2->4.3 with new vMCE in 4.3. (Jinsong Liu, Jan Beulich)

Quoted 8 lines
Quoted 4 lines

Where are we with this?

Is it still a viable candidate for 4.2, now that we have reached rc1 (almost 2)?

Didn't we already take the trivial patch that will ease the transition to
4.3?

We took one necessary patch, but I think at least the second one of the recently posted series would also be needed. And the really important patch for migration forward compatibility was patch 5 in that series, yet I wouldn't want to take patches 3 and 4 for 4.2.

Quoted 4 lines

In any case, the series is in need of resubmission anyway. Perhaps (if that's possible, I didn't check in too much detail) reordering patch 5 could be done at once.

Patch 2 has been updated according to Jan's comments.

As for patch 5, it cannot be reordered w/o patch 3 checked in (patch 5 is for save/restore MCi_CTL2, a newly added MSR at patch 3). In fact we could remove patch 5 totally, and don't add MCi_CTL2 (this MSR is nothing to do with vmce logic itself, the only reason why we add it in new vmce is to get perfromance benefit (but very trivial), so it's OK not to add it and remove patch 5). Another benefit of not add MCi_CTL2 is, to avoid difference between Intel and AMD code. Hence I think it's an acceptable approach to keep current vmce (not implement MCi_CTL2). Your opinion?

Thanks,
Jinsong

#6 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Jinsong

As for patch 5, it cannot be reordered w/o patch 3 checked in (patch 5 is for save/restore MCi_CTL2, a newly added MSR at patch 3). In fact we could remove patch 5 totally, and don't add MCi_CTL2 (this MSR is nothing to do with vmce logic itself, the only reason why we add it in new vmce is to get perfromance benefit (but very trivial), so it's OK not to add it and remove patch 5).

But I thought you were pretty keen on getting in this performance improvement?

Quoted 3 lines

Another benefit of not add MCi_CTL2 is, to avoid difference between Intel and AMD code. Hence I think it's an acceptable approach to keep current vmce (not implement MCi_CTL2). Your opinion?

Current code already handles MCi_CTL2, but incompletely (always returning zero for reads, and dropping writes). This is valid because nothing gets announced that should make a guest think it can access those MSRs in the first place. I do think, however, that getting this right (and at once getting the guest side polling disabled) is beneficial, the question just is whether we want to set the ground for this now, or deal with it after 4.2 went out.

I'm favoring doing it now, and I don't see the strict relationship to patch #3 - with what we currently implement it would be sufficient to save zeros and fail non-zero restores (which ought to fail earlier already anyway, since the implication of the MSRs here having non-zero values would be for MCG_CAP to have an unsupported value to be restored too).

Otoh, restoring from saved state that only includes MCG_CAP (but no MCi_CTL2-s) needs to be handled anyway (forcing MCi_CTL2 to be zero, which would be trivial as that's the startup state, i.e. the only complication here is the variable size save record), so pushing this to post-4.2 as well is a reasonable alternative.

Keir, Ian?

Jan

#7 lore raw
Quoted 7 lines · Jan Beulich

Otoh, restoring from saved state that only includes MCG_CAP (but no MCi_CTL2-s) needs to be handled anyway (forcing MCi_CTL2 to be zero, which would be trivial as that's the startup state, i.e. the only complication here is the variable size save record), so pushing this to post-4.2 as well is a reasonable alternative.

Keir, Ian?

I think we should leave it and handle the variable-sized save record in 4.3. Using hvm_load_entry_zeroextend() to read in save records, with zero padding for older shorter records, should be straightforward enough.

-- Keir

#8 lore raw
Quoted 9 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 6 lines · Jan Beulich

Otoh, restoring from saved state that only includes MCG_CAP (but no MCi_CTL2-s) needs to be handled anyway (forcing MCi_CTL2 to be zero, which would be trivial as that's the startup state, i.e. the only complication here is the variable size save record), so pushing this to post-4.2 as well is a reasonable alternative.

Quoted 5 lines
Quoted 1 line

Keir, Ian?

I think we should leave it and handle the variable-sized save record in 4.3. Using hvm_load_entry_zeroextend() to read in save records, with zero padding for older shorter records, should be straightforward enough.

Okay. So Ian, you could then take the corresponding item off the list. Or do you do that only once patches make it through the regression tester?

Jan

#9 lore raw
Quoted 11 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 7 lines · Jan Beulich

Otoh, restoring from saved state that only includes MCG_CAP (but no MCi_CTL2-s) needs to be handled anyway (forcing MCi_CTL2 to be zero, which would be trivial as that's the startup state, i.e. the only complication here is the variable size save record), so pushing this to post-4.2 as well is a reasonable alternative.

Keir, Ian?

Quoted 7 lines
Quoted 3 lines

I think we should leave it and handle the variable-sized save record in 4.3. Using hvm_load_entry_zeroextend() to read in save records, with zero padding for older shorter records, should be straightforward enough.

Okay. So Ian, you could then take the corresponding item off the list. Or do you do that only once patches make it through the regression tester?

I'll mark it as done for 4.2.

Quoted 3 lines

Jan

#10 lore raw
In reply to Jan Beulich
Quoted 11 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 7 lines · Jan Beulich

Otoh, restoring from saved state that only includes MCG_CAP (but no MCi_CTL2-s) needs to be handled anyway (forcing MCi_CTL2 to be zero, which would be trivial as that's the startup state, i.e. the only complication here is the variable size save record), so pushing this to post-4.2 as well is a reasonable alternative.

Keir, Ian?

Quoted 9 lines
Quoted 4 lines

I think we should leave it and handle the variable-sized save record in 4.3. Using hvm_load_entry_zeroextend() to read in save records, with zero padding for older shorter records, should be straightforward enough.

Okay. So Ian, you could then take the corresponding item off the list. Or do you do that only once patches make it through the regression tester?

So we will leave it and handle it after 4.2, right?
I will take 1 week vacation start from tomorrow, so Jan, if anythting misunderstanding please let me know asap.

Thanks,
Jinsong

#11 lore raw
Quoted 18 lines
Quoted 1 line
Quoted 1 line · Jinsong
Quoted 16 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 7 lines · Jan Beulich

Otoh, restoring from saved state that only includes MCG_CAP (but no MCi_CTL2-s) needs to be handled anyway (forcing MCi_CTL2 to be zero, which would be trivial as that's the startup state, i.e. the only complication here is the variable size save record), so pushing this to post-4.2 as well is a reasonable alternative.

Keir, Ian?

I think we should leave it and handle the variable-sized save record in 4.3. Using hvm_load_entry_zeroextend() to read in save records, with zero padding for older shorter records, should be straightforward enough.

Quoted 6 lines
Quoted 4 lines

Okay. So Ian, you could then take the corresponding item off the list. Or do you do that only once patches make it through the regression tester?

So we will leave it and handle it after 4.2, right?

Yes. It would be nice if you could then resubmit the rest of the series, addressing pending review comments.

Jan