| 159 | } |
| 160 | |
| 161 | static CharacterDevice *console_init(void) |
| 162 | { |
| 163 | CharacterDevice *dev; |
| 164 | console_resize_pending = TRUE; |
| 165 | dev = mallocz(sizeof(*dev)); |
| 166 | dev->write_data = console_write; |
| 167 | dev->read_data = console_read; |
| 168 | return dev; |
| 169 | } |
| 170 | |
| 171 | typedef struct { |
| 172 | VirtMachineParams *p; |