Files
kvmtool/include/kvm/term.h
T
Matt Evans 3bbc49b616 kvm tools: Add CONSOLE_HV term type and allow it to be selected
This patch paves the way for adding a hypervisor console, useful on systems that
support one out of the box yet don't have either serial port or virtio console
support (e.g. kernels expecting POWER SPAPR).

Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:49 +01:00

21 lines
498 B
C

#ifndef KVM__TERM_H
#define KVM__TERM_H
#include <sys/uio.h>
#include <stdbool.h>
#define CONSOLE_8250 1
#define CONSOLE_VIRTIO 2
#define CONSOLE_HV 3
int term_putc_iov(int who, struct iovec *iov, int iovcnt, int term);
int term_getc_iov(int who, struct iovec *iov, int iovcnt, int term);
int term_putc(int who, char *addr, int cnt, int term);
int term_getc(int who, int term);
bool term_readable(int who, int term);
void term_set_tty(int term);
void term_init(void);
#endif /* KVM__TERM_H */