mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-01 19:21:31 +00:00
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>
21 lines
498 B
C
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 */
|