xen: use a better chardev type check