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

[win-pv-devel] [PATCH] Get rid of old XenServer-ism

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@xxxxxxxxxx>
 src/xenbus/shared_info.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/xenbus/shared_info.c b/src/xenbus/shared_info.c
index 4bf530b..1e36a92 100644
--- a/src/xenbus/shared_info.c
+++ b/src/xenbus/shared_info.c
@@ -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);
-#error 'Unrecognised architecture'
-#undef  HVM_PARAM_32BIT
     status = MemoryAddToPhysmap((PFN_NUMBER)(Context->Address.QuadPart >> 

win-pv-devel mailing list



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