kvm: proper encoding for write() intercept, remove MaxX/MaxY