]> xenbits.xensource.com Git - people/pauldu/xenbus.git/commitdiff
Get rid of old XenServer-ism
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 22 Aug 2017 11:04:36 +0000 (12:04 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 22 Aug 2017 11:04:36 +0000 (12:04 +0100)
Old versions of XenServer used to require that Windows tell the hypervisor
whether it was 64-bit or 32-bit so that the shared info page could be layed
out correctly.

This requirement was dropped in later versions of XenServer but some
versions had a bug where the domain wallclock time was not updated
correctly unless the old mechanism was used.

All such versions of XenServer have long been out of support and such hacks
really have no place in the Xen Project code-base anyway.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/shared_info.c

index 4bf530bc7e22a5e99a3a77df209efc5b18cb8492..1e36a92eb0740fa15db4abcfcecc35a5b9f85f25 100644 (file)
@@ -412,21 +412,6 @@ SharedInfoMap(
 {
     NTSTATUS                        status;
 
-    // This, unfortunately, seems to be a necessary hack to
-    // get the domain wallclock updated correctly on older
-    // versions of XenServer.
-#define HVM_PARAM_32BIT 8
-
-#if defined(__i386__)
-    (VOID) HvmSetParam(HVM_PARAM_32BIT, 1);
-#elif defined(__x86_64__)
-    (VOID) HvmSetParam(HVM_PARAM_32BIT, 0);
-#else
-#error 'Unrecognised architecture'
-#endif
-
-#undef  HVM_PARAM_32BIT
-
     status = MemoryAddToPhysmap((PFN_NUMBER)(Context->Address.QuadPart >> PAGE_SHIFT),
                                 XENMAPSPACE_shared_info,
                                 0);