[Libguestfs] [PATCH v6 01/10] lib/osinfo.c: Extract xml processing into a callback