Updated patch, incorporating feedback.
Besides formatting, changes how apic is reported - and that's not
pretty. As danpb found out, in cset 12423:ebed72718263 in xen-unstable,
setting the apic was removed from tools/libxc/xc_hvm_build.c.
In a surprising turn of events, cset 12569:9d6bc06919e0 claims to
reintroduce apic toggling (with a default of 1/on) by writing it into an
hvm_info_table in tools/python/xen/lowlevel/xc/xc.c - I haven't figured
out why the apic can't be toggled in rawhide, though.
For now, the code uses the hypervisor version to determine what apic
capability to report - most likely not the right thing to do, better
suggestions much appreciated.
David