Minor fix in converting the flags

as we are doing them backwards from the Xen flags and I seem to have missed some here and there. I flipped the special cases too just to be consistent.