<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/stubs, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/stubs?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/stubs?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-11-11T08:17:45+00:00</updated>
<entry>
<title>qga: Allow building of the guest agent without system emulators or tools</title>
<updated>2022-11-11T08:17:45+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2022-11-10T08:36:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e0091133e3367265c08345afe2950c0c22e93d12'/>
<id>urn:sha1:e0091133e3367265c08345afe2950c0c22e93d12</id>
<content type='text'>
If configuring with "--disable-system --disable-user --enable-guest-agent"
the linking currently fails with:

qga/qemu-ga.p/commands.c.o: In function `qmp_command_info':
build/../../home/thuth/devel/qemu/qga/commands.c:70: undefined reference to `qmp_command_name'
build/../../home/thuth/devel/qemu/qga/commands.c:71: undefined reference to `qmp_command_is_enabled'
build/../../home/thuth/devel/qemu/qga/commands.c:72: undefined reference to `qmp_has_success_response'
qga/qemu-ga.p/commands.c.o: In function `qmp_guest_info':
build/../../home/thuth/devel/qemu/qga/commands.c:82: undefined reference to `qmp_for_each_command'
qga/qemu-ga.p/commands.c.o: In function `qmp_guest_exec':
build/../../home/thuth/devel/qemu/qga/commands.c:410: undefined reference to `qbase64_decode'
qga/qemu-ga.p/channel-posix.c.o: In function `ga_channel_open':
build/../../home/thuth/devel/qemu/qga/channel-posix.c:214: undefined reference to `unix_listen'
build/../../home/thuth/devel/qemu/qga/channel-posix.c:228: undefined reference to `socket_parse'
build/../../home/thuth/devel/qemu/qga/channel-posix.c:234: undefined reference to `socket_listen'
qga/qemu-ga.p/commands-posix.c.o: In function `qmp_guest_file_write':
build/../../home/thuth/devel/qemu/qga/commands-posix.c:527: undefined reference to `qbase64_decode'

Let's make sure that we also compile and link the required files if
the system emulators have not been enabled.

Message-Id: &lt;20221110083626.31899-1-thuth@redhat.com&gt;
Tested-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>stubs: add qemu_ram_block_from_host() and qemu_ram_get_fd()</title>
<updated>2022-10-26T18:56:42+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2022-10-13T18:59:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=701bff24deba59a095c6b5cade15e764d56909f6'/>
<id>urn:sha1:701bff24deba59a095c6b5cade15e764d56909f6</id>
<content type='text'>
The blkio block driver will need to look up the file descriptor for a
given pointer. This is possible in softmmu builds where the RAMBlock API
is available for querying guest RAM.

Add stubs so tools like qemu-img that link the block layer still build
successfully. In this case there is no guest RAM but that is fine.
Bounce buffers and their file descriptors will be allocated with
libblkio's blkio_alloc_mem_region() so we won't rely on QEMU's
qemu_ram_get_fd() in that case.

Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-id: 20221013185908.1297568-12-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>chardev: src buffer const for write functions</title>
<updated>2022-09-29T10:38:05+00:00</updated>
<author>
<name>Arwed Meyer</name>
</author>
<published>2022-09-11T18:18:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8f9abdf586d48552273abe38cf55058f7d0c85fd'/>
<id>urn:sha1:8f9abdf586d48552273abe38cf55058f7d0c85fd</id>
<content type='text'>
Make source buffers const for char be write functions.
This allows using buffers returned by fifo as buf parameter and source buffer
should not be changed by write functions anyway.

Signed-off-by: Arwed Meyer &lt;arwed.meyer@gmx.de&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20220911181840.8933-3-arwed.meyer@gmx.de&gt;
</content>
</entry>
<entry>
<title>semihosting: Allow optional use of semihosting from userspace</title>
<updated>2022-09-13T16:18:21+00:00</updated>
<author>
<name>Peter Maydell</name>
</author>
<published>2022-08-22T14:12:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=5202861b20d77b1d638da5f10af0f51ebcfc61bf'/>
<id>urn:sha1:5202861b20d77b1d638da5f10af0f51ebcfc61bf</id>
<content type='text'>
Currently our semihosting implementations generally prohibit use of
semihosting calls in system emulation from the guest userspace.  This
is a very long standing behaviour justified originally "to provide
some semblance of security" (since code with access to the
semihosting ABI can do things like read and write arbitrary files on
the host system).  However, it is sometimes useful to be able to run
trusted guest code which performs semihosting calls from guest
userspace, notably for test code.  Add a command line suboption to
the existing semihosting-config option group so that you can
explicitly opt in to semihosting from guest userspace with
 -semihosting-config userspace=on

(There is no equivalent option for the user-mode emulator, because
there by definition all code runs in userspace and has access to
semihosting already.)

This commit adds the infrastructure for the command line option and
adds a bool 'is_user' parameter to the function
semihosting_userspace_enabled() that target code can use to check
whether it should be permitting the semihosting call for userspace.
It mechanically makes all the callsites pass 'false', so they
continue checking "is semihosting enabled in general".  Subsequent
commits will make each target that implements semihosting honour the
userspace=on option by passing the correct value and removing
whatever "don't do this for userspace" checking they were doing by
hand.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Acked-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Reviewed-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20220822141230.3658237-2-peter.maydell@linaro.org&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>stubs: update replay-tools to match replay.h types</title>
<updated>2022-07-28T13:36:17+00:00</updated>
<author>
<name>Claudio Fontana</name>
</author>
<published>2022-07-04T07:58:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bb7e03cb5677b570c5966c7dd946f9ed7acd11bc'/>
<id>urn:sha1:bb7e03cb5677b570c5966c7dd946f9ed7acd11bc</id>
<content type='text'>
detected with GCC 13 [-Werror=enum-int-mismatch]

Solves Issue #1096.

Signed-off-by: Claudio Fontana &lt;cfontana@suse.de&gt;
Cc: Pavel Dovgalyuk &lt;pavel.dovgalyuk@ispras.ru&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-Id: &lt;20220704075832.31537-1-cfontana@suse.de&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>hw/i386/xen/xen-hvm: Inline xen_piix_pci_write_config_client() and remove it</title>
<updated>2022-06-28T22:24:59+00:00</updated>
<author>
<name>Bernhard Beschow</name>
</author>
<published>2022-06-26T09:46:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c379bd7551f34e42c4c935783c0c08bab41d70c1'/>
<id>urn:sha1:c379bd7551f34e42c4c935783c0c08bab41d70c1</id>
<content type='text'>
xen_piix_pci_write_config_client() is implemented in the xen sub tree and
uses PIIX constants internally, thus creating a direct dependency on
PIIX. Now that xen_set_pci_link_route() is stubbable, the logic of
xen_piix_pci_write_config_client() can be moved to PIIX which resolves
the dependency.

Signed-off-by: Bernhard Beschow &lt;shentey@gmail.com&gt;
Acked-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Paul Durrant &lt;paul@xen.org&gt;
Message-Id: &lt;20220626094656.15673-3-shentey@gmail.com&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>hw/i386/xen/xen-hvm: Allow for stubbing xen_set_pci_link_route()</title>
<updated>2022-06-28T22:24:13+00:00</updated>
<author>
<name>Bernhard Beschow</name>
</author>
<published>2022-06-26T09:46:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=21d87050af66f50c8d394a160e89560ceaa6bd5d'/>
<id>urn:sha1:21d87050af66f50c8d394a160e89560ceaa6bd5d</id>
<content type='text'>
The only user of xen_set_pci_link_route() is
xen_piix_pci_write_config_client() which implements PIIX-specific logic in
the xen namespace. This makes xen-hvm depend on PIIX which could be
avoided if xen_piix_pci_write_config_client() was implemented in PIIX. In
order to do this, xen_set_pci_link_route() needs to be stubbable which
this patch addresses.

Signed-off-by: Bernhard Beschow &lt;shentey@gmail.com&gt;
Reviewed-by: Paul Durrant &lt;paul@xen.org&gt;
Message-Id: &lt;20220626094656.15673-2-shentey@gmail.com&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>semihosting: Cleanup chardev init</title>
<updated>2022-06-27T23:05:52+00:00</updated>
<author>
<name>Richard Henderson</name>
</author>
<published>2022-05-01T23:59:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=fb08790b35174a98301ecbac4d5234d0cbfebea0'/>
<id>urn:sha1:fb08790b35174a98301ecbac4d5234d0cbfebea0</id>
<content type='text'>
Rename qemu_semihosting_connect_chardevs to
qemu_semihosting_chardev_init; pass the result
directly to qemu_semihosting_console_init.

Store the chardev in SemihostingConsole instead
of SemihostingConfig, which lets us drop
semihosting_get_chardev.

Reviewed-by: Luc Michel &lt;lmichel@kalray.eu&gt;
Signed-off-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>vfio-user: handle device interrupts</title>
<updated>2022-06-15T15:43:42+00:00</updated>
<author>
<name>Jagannathan Raman</name>
</author>
<published>2022-06-13T20:26:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=08cf3dc611991e9697f62458107e13f2c582869a'/>
<id>urn:sha1:08cf3dc611991e9697f62458107e13f2c582869a</id>
<content type='text'>
Forward remote device's interrupts to the guest

Signed-off-by: Elena Ufimtseva &lt;elena.ufimtseva@oracle.com&gt;
Signed-off-by: John G Johnson &lt;john.g.johnson@oracle.com&gt;
Signed-off-by: Jagannathan Raman &lt;jag.raman@oracle.com&gt;
Message-id: 9523479eaafe050677f4de2af5dd0df18c27cfd9.1655151679.git.jag.raman@oracle.com
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>replay: notify vCPU when BH is scheduled</title>
<updated>2022-06-06T07:26:53+00:00</updated>
<author>
<name>Pavel Dovgalyuk</name>
</author>
<published>2022-05-27T10:46:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=75bbe5e5ec2867f098a31bfd553a1fb084289cc2'/>
<id>urn:sha1:75bbe5e5ec2867f098a31bfd553a1fb084289cc2</id>
<content type='text'>
vCPU execution should be suspended when new BH is scheduled.
This is needed to avoid guest timeouts caused by the long cycles
of the execution. In replay mode execution may hang when
vCPU sleeps and block event comes to the queue.
This patch adds notification which wakes up vCPU or interrupts
execution of guest code.

Signed-off-by: Pavel Dovgalyuk &lt;Pavel.Dovgalyuk@ispras.ru&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;

--

v2: changed first_cpu to current_cpu (suggested by Richard Henderson)
v4: moved vCPU notification to aio_bh_enqueue (suggested by Paolo Bonzini)
Message-Id: &lt;165364837317.688121.17680519919871405281.stgit@pasha-ThinkPad-X280&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
</feed>
