mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Eliminate --disable-gfx-check and make VNC default when SDL not available
--disable-gfx-check predates VNC server support. It made sense back then because the only thing you could do without SDL was use -nographic mode or similar tricks. Since this is a very advanced mode of operation, gfx-check provided a good safety net for casual users. A casual user is very likely to use VNC to interact with a guest. In fact, it's often frustrating to install QEMU on a server and have to specify disable-gfx-check when you only want to use VNC. This patch eliminates disable-gfx-check and makes SDL behave like every other optional dependency. If SDL is not available, instead of failing ungracefully if no special options are specified, we default to -vnc localhost:0,to=99. When we do default to VNC, we also print a message to tell the user that we've done this include which port we're currently listening on. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
eb0b64f7aa
commit
f92f8afebe
4 changed files with 36 additions and 33 deletions
8
vnc.c
8
vnc.c
|
@ -86,7 +86,6 @@ char *vnc_socket_local_addr(const char *format, int fd) {
|
|||
return addr_to_string(format, &sa, salen);
|
||||
}
|
||||
|
||||
|
||||
char *vnc_socket_remote_addr(const char *format, int fd) {
|
||||
struct sockaddr_storage sa;
|
||||
socklen_t salen;
|
||||
|
@ -2101,6 +2100,13 @@ int vnc_display_password(DisplayState *ds, const char *password)
|
|||
return 0;
|
||||
}
|
||||
|
||||
char *vnc_display_local_addr(DisplayState *ds)
|
||||
{
|
||||
VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;
|
||||
|
||||
return vnc_socket_local_addr("%s:%s", vs->lsock);
|
||||
}
|
||||
|
||||
int vnc_display_open(DisplayState *ds, const char *display)
|
||||
{
|
||||
VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue