-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows PV auto-update feature support #2197
Conversation
…s virtual hardware platform (Commit 1 of 5: requires 4 following commits for CP-11136.) This code change is only to add virtual hardware platform infrastructure in XenServer Host. VM migration will be blocked if virtual hardware platform not support. With this infrastructure, we can add virtual hardware platform information in other feature. Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com> (cherry picked from commit 593b8e6) Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com> Conflicts: ocaml/idl/datamodel.ml ocaml/xapi/xapi_globs.ml ocaml/xapi/xapi_host.ml ocaml/xapi/xapi_vm_helpers.ml
(Commit 2 of 5 commits for CP-11136.) Signed-off-by: chengz <cheng.zhang@citrix.com> (cherry picked from commit c265b0d) (only selected parts cherry-picked) Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com> Conflicts: ocaml/xapi/xapi_host.ml
(Commit 3 of 5 commits for CP-11136.) Together with the previous two CP-11136 commits, this feature for the Virtual Hardware Platform versioning is complete (and believed correct) but we intend to change the names "virt_hw_vn" and "virt_hw_vns" to be longer and more descriptive. Changes in this commit: * Define new error (about vm/host version mismatch, not about 6.5SP1). * Increment minor version no. of datamodel schema and cream release. * Fix doc strings. * Host creation: no parameter to specify the supported versions. * Default [0L] for host's supported versions, when creating host. * (Due to the above) No special-case in check when VM has version 0. * VM hardware platform version is read-write in datamodel now. * Check for version compatibility in the right places. * More comments. Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com> (cherry picked from commit 1267f24) (only some parts cherry-picked; slight changes) Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com> Conflicts: ocaml/idl/datamodel.ml ocaml/xapi/xapi_globs.ml ocaml/xapi/xapi_host.ml ocaml/xapi/xapi_vm_helpers.ml
(Commit 4 of 5 for CP-11136.) Change from VM.virt_hw_vn and Host.virt_hw_vns to VM.hardware_platform_version and Host.virtual_hardware_platform_versions Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com> (cherry picked from commit 590437f) Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com> Conflicts: ocaml/idl/datamodel.ml ocaml/xapi/xapi_host.ml ocaml/xapi/xapi_vm_helpers.ml
The fifth and last commit for this feature. Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Signed-off-by: Kaifeng Zhu <kaifeng.zhu@citrix.com>
In xapi_vm_helpers.ml, the "Client" identifier was binding to a module in Xenstore. Fixed by no longer opening the Xenstore module. Commit 6 of 7 for this feature. Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
The seventh and last commit for this feature. This is just to improve readability. Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Hi @simonjbeaumont |
@xen-git: retest this please. |
Signed-off-by: Kaifeng Zhu <kaifeng.zhu@citrix.com>
Hi Cheng, I've added some comments on the commits that are the extras to #2180. One of them looks like it needs to be removed. I'm concerned by some of (what look like) conflicting comments in the final commit. Also, the build on xen-git failed. I've kicked it off again because the logs have expired but if it's failing then we'll need to fix it up. |
This code change is to add “pci_pv” into VHPs. Will update VM’s VHP on pci_pv supported Host to 2; Add VHP refresh on both VM clean_reboot and hard_reboot. Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
Hi @simonjbeaumont Why I create pull request for all the code is because we just waiting on the feature to be test. I know there is already a pull request on trunk which include a lot of my code pull request. But I still create this because we want to integrate the code in early stage, so QA team can have something to test. Thanks again for your great support. |
I've merged the original pull request to master just now (#2180). It seems that the new commits in this pull request are the 6th and the 9th. |
I discussed briefly with @thomassa and it seems that the current implementation using platform keys was chosen in order to start testing of this stuff soon. However, it may be decided that another approach is better, and the design may be revised. I'll merge this pull request, since it is for a feature branch, but would expect a new pull request for master at some point. |
Windows PV auto-update feature support
This pull request include three part of code change: