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>
{
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);