On 15/05/2023 16:11, Markus Armbruster wrote:
This reverts commit 1881f336a33a8a99cb17ab1c57ed953682e8e107.
This commit breaks "-drive if=pflash,readonly=on,file=image.iso". It
claims to merely replace an open-coded version of blk_name() by a
call, but that's not the case. Sorry for the incon
On 15/05/2023 16:19, Nicholas Piggin wrote:
On Mon May 15, 2023 at 10:03 PM AEST, Mark Cave-Ayland wrote:
On 15/05/2023 10:26, Nicholas Piggin wrote:
Some 32-bit SPRs are incorrectly implemented as 64-bits on 64-bit
targets.
This changes VRSAVE, DSISR, HDSISR, DAWRX0, PIDR, LPIDR, DEXCR,
HDE
On 15/05/2023 22.53, Richard Henderson wrote:
On 5/15/23 06:02, Thomas Huth wrote:
Hi Richard!
The following changes since commit 8844bb8d896595ee1d25d21c770e6e6f29803097:
Merge tag 'or1k-pull-request-20230513'
ofhttps://github.com/stffrdhrn/qemu into staging (2023-05-13 11:23:14 +0100)
On Tue, May 16, 2023 at 2:03 AM Eric DeVolder wrote:
>
> Following the guidelines in tests/qtest/bios-tables-test.c,
> set up bios-tables-test-allowed-diff.h to exclude the
> imminent changes to the APIC tables, per step 2.
>
> Signed-off-by: Eric DeVolder
Acked-by: Ani Sinha
> ---
> tests/qt
On Tue, May 16, 2023 at 2:04 AM Eric DeVolder wrote:
>
> Currently i386 QEMU generates MADT revision 3, and reports
> MADT revision 1. Set .revision to 3 to match reality.
>
> Link:
> https://lore.kernel.org/linux-acpi/20230327191026.3454-1-eric.devolder@ora
> cle.com/T/#t
> Signed-off-by: Eric D
On Tue, May 16, 2023 at 2:03 AM Eric DeVolder wrote:
>
> Following the guidelines in tests/qtest/bios-tables-test.c, this
> is step 5 and 6.
>
> The MADT/APIC table diffs show (for pc, q35 and microvm) bumping
> revision from 1 to 3 (and checksum changing accordingly):
>
> Using expected file 'te
***
This is an implementation for the TivaC board.
For now it models the system control block, the general purpose I/O, the
general purpose timers, the watchdog timers and the usart module.
The code is available at https://github.com/moesay/qemu_TivaC.git
***
Mohamed ElSayed (8):
the tivac mac
Signed-off-by: Mohamed ElSayed
---
hw/arm/tivac.c| 56 ++
hw/arm/tm4c123gh6pm_soc.c | 274 ++
include/hw/arm/tm4c123gh6pm_soc.h | 71
3 files changed, 401 insertions(+)
create mode 100644 hw/arm/tivac.c
create mode 100644 hw
Signed-off-by: Mohamed ElSayed
---
hw/misc/tm4c123_sysctl.c | 989 +++
include/hw/misc/tm4c123_sysctl.h | 307 ++
2 files changed, 1296 insertions(+)
create mode 100644 hw/misc/tm4c123_sysctl.c
create mode 100644 include/hw/misc/tm4c123_sysctl.h
diff
Signed-off-by: Mohamed ElSayed
---
hw/watchdog/tm4c123_watchdog.c | 298 +
include/hw/watchdog/tm4c123_watchdog.h | 97
2 files changed, 395 insertions(+)
create mode 100644 hw/watchdog/tm4c123_watchdog.c
create mode 100644 include/hw/watchdog/tm4c123_w
Signed-off-by: Mohamed ElSayed
---
.gitignore | 1 +
README.rst | 150 ++--
configs/devices/arm-softmmu/default.mak | 1 +
hw/arm/Kconfig | 13 ++
hw/arm/meson.build |
Signed-off-by: Mohamed ElSayed
---
hw/char/tm4c123_usart.c | 387
include/hw/char/tm4c123_usart.h | 124 ++
2 files changed, 511 insertions(+)
create mode 100644 hw/char/tm4c123_usart.c
create mode 100644 include/hw/char/tm4c123_usart.h
diff --g
Signed-off-by: Mohamed ElSayed
---
hw/arm/tm4c123gh6pm_soc.c | 14 ++--
hw/char/tm4c123_usart.c| 28 +++
hw/misc/tm4c123_sysctl.c | 6 +-
hw/timer/tm4c123_gptm.c| 134 -
hw/watchdog/tm4c123_watchdog.c | 25 +++---
5 files changed
Signed-off-by: Mohamed ElSayed
---
hw/timer/tm4c123_gptm.c | 529
include/hw/timer/tm4c123_gptm.h | 131
2 files changed, 660 insertions(+)
create mode 100644 hw/timer/tm4c123_gptm.c
create mode 100644 include/hw/timer/tm4c123_gptm.h
diff --git
Signed-off-by: Mohamed ElSayed
---
hw/gpio/tm4c123_gpio.c | 372 +
include/hw/gpio/tm4c123_gpio.h | 127 +++
2 files changed, 499 insertions(+)
create mode 100644 hw/gpio/tm4c123_gpio.c
create mode 100644 include/hw/gpio/tm4c123_gpio.h
diff --git
On Tue, May 16, 2023 at 2:03 AM Eric DeVolder wrote:
>
> The following Linux kernel change broke CPU hotplug for MADT revision
> less than 5.
>
> e2869bd7af60 ("x86/acpi/boot: Do not register processors that cannot be
> onlined for x2APIC")
>
> Discussion on this topic can be located here:
>
>
On 15/05/2023 18:02, Nicholas Piggin wrote:
POWER9 DD2.1 and earlier had significant limitations when running KVM,
including lack of "mixed mode" MMU support (ability to run HPT and RPT
mode on threads of the same core), and a translation prefetch issue
which is worked around by disabling "AIL
On 15/05/2023 18:02, Nicholas Piggin wrote:
POWER9 DD2.1 and earlier had significant limitations when running KVM,
including lack of "mixed mode" MMU support (ability to run HPT and RPT
mode on threads of the same core), and a translation prefetch issue
which is worked around by disabling "AIL
Mark Cave-Ayland writes:
> On 15/05/2023 16:11, Markus Armbruster wrote:
>
>> This reverts commit 1881f336a33a8a99cb17ab1c57ed953682e8e107.
>> This commit breaks "-drive if=pflash,readonly=on,file=image.iso". It
>> claims to merely replace an open-coded version of blk_name() by a
>> call, but th
Add asymmetric crypto support in vhost_user backend.
Signed-off-by: Gowrishankar Muthukrishnan
---
v2:
- added buffer length check before memcpy.
---
backends/cryptodev-vhost-user.c | 9 ++--
hw/virtio/vhost-user.c | 75 +++--
2 files changed, 66 insertion
engaged_in_io could be unset by an MR with re-entrancy checks disabled.
Ensure that only MRs that can set the engaged_in_io flag can unset it.
Closes: https://gitlab.com/qemu-project/qemu/-/issues/1563
Reported-by: Thomas Huth
Signed-off-by: Alexander Bulekov
---
softmmu/memory.c | 4 +++-
1 fi
On 5/15/23 21:31, Nicholas Piggin wrote:
QEMU's PVR value for POWER9 DD2.0 has chip type 1, which is the SMT4
"small core" type that OpenPOWER processors use. QEMU's PVR for all
other POWER9/10 have chip type 0, which "enterprise" systems use.
The difference does not really matter to QEMU (bec
On 5/15/23 18:02, Nicholas Piggin wrote:
POWER9 DD2.1 and earlier had significant limitations when running KVM,
including lack of "mixed mode" MMU support (ability to run HPT and RPT
mode on threads of the same core), and a translation prefetch issue
which is worked around by disabling "AIL" mode
On 5/15/23 18:01, Nicholas Piggin wrote:
QEMU's PVR value for POWER9 DD2.0 has chip type 1, which is the SMT4
"small core" type that OpenPOWER processors use. QEMU's PVR for all
other POWER9/10 have chip type 0, which "enterprise" systems use.
The difference does not really matter to QEMU (becau
Daniel P. Berrangé writes:
> Question for Markus at the bottom
>
> On Fri, May 12, 2023 at 03:29:01PM +0300, Andrew Melnychenko wrote:
>> Added command "request-ebpf". This command returns
>> eBPF program encoded base64. The program taken from the
>> skeleton and essentially is an ELF object
I can look at how the QAPI interface is done, but before I do that, I'd
like to see a review of feature as a whole by subject matter experts.
Any takers?
On Tue, May 16, 2023 at 10:47:52AM +0200, Markus Armbruster wrote:
> Daniel P. Berrangé writes:
>
> > Question for Markus at the bottom
> >
> > On Fri, May 12, 2023 at 03:29:01PM +0300, Andrew Melnychenko wrote:
> >> Added command "request-ebpf". This command returns
> >> eBPF program encoded
On 5/16/23 05:43, Zhenzhong Duan wrote:
We should free the duplicated variant of vbasedev->name plus uuid
rather than vbasedev->name itself.
Fixes: 2dca1b37a7 ("vfio/pci: add support for VF toke")
"toke" -> "token"
Signed-off-by: Zhenzhong Duan
---
hw/vfio/pci.c | 4 +++-
1 file changed,
On Tue, May 16, 2023 at 11:18:16AM +0530, Het Gala wrote:
>
> On 15/05/23 4:06 pm, Daniel P. Berrangé wrote:
> > On Fri, May 12, 2023 at 02:32:38PM +, Het Gala wrote:
> > > MigrateChannelList ideally allows to connect accross multiple interfaces.
> > >
> > > Added MigrateChannelList struct as
While trying to use a SCSI disk on the LSI controller with an
older version of Fedora (25), I'm getting:
qemu: warning: Blocked re-entrant IO on MemoryRegion: lsi-mmio at addr: 0x34
and the SCSI controller is not usable. Seems like we have to
disable the reentrancy checker for the MMIO region, t
Mohamed ElSayed writes:
> ***
> This is an implementation for the TivaC board.
> For now it models the system control block, the general purpose I/O, the
> general purpose timers, the watchdog timers and the usart module.
>
> The code is available at https://github.com/moesay/qemu_TivaC.git
>
Le 15/05/2023 à 17:50, Laurent Vivier a écrit :
Le 15/05/2023 à 15:55, Richard Henderson a écrit :
On 5/15/23 01:31, Laurent Vivier wrote:
The following changes since commit 7c18f2d663521f1b31b821a13358ce38075eaf7d:
Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2
Juan Quintela writes:
> Define and use RATE_LIMIT_MAX instead.
Suggest "RATE_LIMIT_MAX_NONE".
>
> Signed-off-by: Juan Quintela
> ---
> migration/migration-stats.h | 6 ++
> migration/migration.c | 4 ++--
> migration/qemu-file.c | 6 +-
> 3 files changed, 13 insertions(+),
On Tue, 16 May 2023 at 07:36, ido berenbaum wrote:
>
> Hi, I was trying to understand the architecture of the vexpress virtual
> machine in regards to adding new gpios that are going to be external.
> First, is it right to act as if I am developing on a physical board and add
> the gpios to the
On 5/15/23 21:32, Nicholas Piggin wrote:
POWER9 DD2.1 and earlier had significant limitations when running KVM,
including lack of "mixed mode" MMU support (ability to run HPT and RPT
mode on threads of the same core), and a translation prefetch issue
which is worked around by disabling "AIL" mo
David Edmondson wrote:
> Juan Quintela writes:
>
>> Define and use RATE_LIMIT_MAX instead.
>
> Suggest "RATE_LIMIT_MAX_NONE".
Then even better
RATE_LIMIT_DISABLED?
RATE_LIMIT_NONE?
Using MAX and NONE at the same time looks strange.
>> Signed-off-by: Juan Quintela
>> ---
>> migration/migrati
On 230516 1105, Thomas Huth wrote:
> While trying to use a SCSI disk on the LSI controller with an
> older version of Fedora (25), I'm getting:
>
> qemu: warning: Blocked re-entrant IO on MemoryRegion: lsi-mmio at addr: 0x34
Do you have a gdb backtrace for this one or is there some easy way to
r
On 5/15/23 06:26, Nicholas Piggin wrote:
A store to MMCR0 with PMCjCE=1 fails to update hflags correctly and
results in hflags mismatch:
qemu: fatal: TCG hflags mismatch (current:0x2408003d rebuilt:0x240a003d)
This can be reproduced by running perf on a recent machine.
Signed-off-by: Nic
Juan Quintela writes:
> We forget several places to add to trasferred amount of data. With
"transferred".
> this fixes I get:
>
>qemu_file_transferred() + multifd_bytes == transferred
>
> The only place whrer this is not true is during devices sending. But
"where"
> going all through th
On Tue May 16, 2023 at 5:02 PM AEST, Mark Cave-Ayland wrote:
> On 15/05/2023 16:19, Nicholas Piggin wrote:
>
> > On Mon May 15, 2023 at 10:03 PM AEST, Mark Cave-Ayland wrote:
> >> On 15/05/2023 10:26, Nicholas Piggin wrote:
> >>
> >>> Some 32-bit SPRs are incorrectly implemented as 64-bits on 64-bi
On Tue May 16, 2023 at 5:58 PM AEST, Frederic Barrat wrote:
>
>
> On 15/05/2023 18:02, Nicholas Piggin wrote:
> > POWER9 DD2.1 and earlier had significant limitations when running KVM,
> > including lack of "mixed mode" MMU support (ability to run HPT and RPT
> > mode on threads of the same core),
On Tue May 16, 2023 at 6:43 PM AEST, Harsh Prateek Bora wrote:
>
>
> On 5/15/23 21:31, Nicholas Piggin wrote:
> > QEMU's PVR value for POWER9 DD2.0 has chip type 1, which is the SMT4
> > "small core" type that OpenPOWER processors use. QEMU's PVR for all
> > other POWER9/10 have chip type 0, which
Juan Quintela writes:
> It is a time that needs to be cleaned each time cancel migration.
> Once there create migration_time_since() to calculate how time since a
> time in the past.
>
> Signed-off-by: Juan Quintela
>
> ---
>
> Rename to migration_time_since (cédric)
> ---
> migration/migration
On Tue May 16, 2023 at 5:56 PM AEST, Frederic Barrat wrote:
>
>
> On 15/05/2023 18:02, Nicholas Piggin wrote:
> > POWER9 DD2.1 and earlier had significant limitations when running KVM,
> > including lack of "mixed mode" MMU support (ability to run HPT and RPT
> > mode on threads of the same core),
On Mon, 15 May 2023 at 15:39, Richard Henderson
wrote:
>
> This should be true of all loongarch64 running Linux.
>
> Signed-off-by: Richard Henderson
> ---
> tcg/loongarch64/tcg-target.c.inc | 9 +
> 1 file changed, 9 insertions(+)
>
Reviewed-by: Peter Maydell
thanks
-- PMM
On 16/01/2023 21.42, Mauro Matteo Cascella wrote:
This prevents the well known DMA-MMIO reentrancy problem (upstream issue #556)
leading to memory corruption bugs like stack overflow or use-after-free.
Fixes: CVE-2023-0330
Signed-off-by: Mauro Matteo Cascella
Reported-by: Zheyu Ma
---
Since
Juan Quintela writes:
> David Edmondson wrote:
>> Juan Quintela writes:
>>
>>> Define and use RATE_LIMIT_MAX instead.
>>
>> Suggest "RATE_LIMIT_MAX_NONE".
>
> Then even better
>
> RATE_LIMIT_DISABLED?
> RATE_LIMIT_NONE?
RATE_LIMIT_NONE sounds good to me.
>
> Using MAX and NONE at the same tim
On Tue May 16, 2023 at 6:44 PM AEST, Cédric Le Goater wrote:
> On 5/15/23 18:02, Nicholas Piggin wrote:
> > POWER9 DD2.1 and earlier had significant limitations when running KVM,
> > including lack of "mixed mode" MMU support (ability to run HPT and RPT
> > mode on threads of the same core), and a
>-Original Message-
>From: Cédric Le Goater
>Sent: Tuesday, May 16, 2023 4:58 PM
>To: Duan, Zhenzhong ; qemu-
>de...@nongnu.org
>Cc: minwoo...@samsung.com; alex.william...@redhat.com; Peng, Chao P
>
>Subject: Re: [PATCH] vfio/pci: Fix a use-after-free issue
>
>On 5/16/23 05:43, Zhenzhong
On Mon, 15 May 2023 at 15:43, Richard Henderson
wrote:
>
> With x86_64 as host, we do not have any temporaries with which to
> resolve cycles, but we do have xchg. As a side bonus, the set of
> graphs that can be made with 3 nodes and all nodes conflicting is
> small: two. We can solve the cycl
> -Original Message-
> From:
> qemu-devel-bounces+shameerali.kolothum.thodi=huawei@nongnu.org
> [mailto:qemu-devel-bounces+shameerali.kolothum.thodi=huawei.com@nong
> nu.org] On Behalf Of Avihai Horon
> Sent: 16 February 2023 14:36
> To: qemu-devel@nongnu.org
> Cc: Alex Williamson ; J
On Mon, 15 May 2023 at 15:38, Richard Henderson
wrote:
>
> Now that tcg_out_helper_load_regs is not recursive, we can
> merge it into its only caller, tcg_out_helper_load_slots.
>
> Signed-off-by: Richard Henderson
> ---
Reviewed-by: Peter Maydell
thanks
-- PMM
On Tue May 16, 2023 at 6:44 PM AEST, Cédric Le Goater wrote:
> On 5/15/23 18:01, Nicholas Piggin wrote:
> > QEMU's PVR value for POWER9 DD2.0 has chip type 1, which is the SMT4
> > "small core" type that OpenPOWER processors use. QEMU's PVR for all
> > other POWER9/10 have chip type 0, which "enter
David Edmondson wrote:
> Juan Quintela writes:
>
>> It is a time that needs to be cleaned each time cancel migration.
>> Once there create migration_time_since() to calculate how time since a
>> time in the past.
>>
>> Signed-off-by: Juan Quintela
>>
>> ---
>>
>> Rename to migration_time_since (
On 16/05/2023 11.27, Alexander Bulekov wrote:
On 230516 1105, Thomas Huth wrote:
While trying to use a SCSI disk on the LSI controller with an
older version of Fedora (25), I'm getting:
qemu: warning: Blocked re-entrant IO on MemoryRegion: lsi-mmio at addr: 0x34
Do you have a gdb backtrace
On Mon, 15 May 2023 at 15:43, Richard Henderson
wrote:
>
> Examine MemOp for atomicity and alignment, adjusting alignment
> as required to implement atomicity on the host.
>
> Signed-off-by: Richard Henderson
> ---
> v5: Dropped r-b because of MO_ATOM_* reorg
> Return a struct with the result
On Mon, 15 May 2023 at 15:40, Richard Henderson
wrote:
>
> No change to the ultimate load/store routines yet, so some atomicity
> conditions not yet honored, but plumbs the change to alignment through
> the relevant functions.
>
> Signed-off-by: Richard Henderson
> ---
> v5: Removed r-b for chang
On Mon, 15 May 2023 at 15:42, Richard Henderson
wrote:
>
> Signed-off-by: Richard Henderson
> ---
> tcg/ppc/tcg-target.c.inc | 19 ++-
> 1 file changed, 18 insertions(+), 1 deletion(-)
Reviewed-by: Peter Maydell
thanks
-- PMM
On Tue May 16, 2023 at 7:23 PM AEST, Harsh Prateek Bora wrote:
>
>
> On 5/15/23 21:32, Nicholas Piggin wrote:
> > POWER9 DD2.1 and earlier had significant limitations when running KVM,
> > including lack of "mixed mode" MMU support (ability to run HPT and RPT
> > mode on threads of the same core),
On Mon, 15 May 2023 at 15:39, Richard Henderson
wrote:
>
> Signed-off-by: Richard Henderson
> ---
> tcg/riscv/tcg-target.c.inc | 13 -
> 1 file changed, 8 insertions(+), 5 deletions(-)
>
Reviewed-by: Peter Maydell
thanks
-- PMM
On 16/05/23 2:27 pm, Daniel P. Berrangé wrote:
On Tue, May 16, 2023 at 11:18:16AM +0530, Het Gala wrote:
On 15/05/23 4:06 pm, Daniel P. Berrangé wrote:
On Fri, May 12, 2023 at 02:32:38PM +, Het Gala wrote:
MigrateChannelList ideally allows to connect accross multiple interfaces.
@@ -51,
On Mon, 15 May 2023 at 15:39, Richard Henderson
wrote:
>
> Signed-off-by: Richard Henderson
> ---
> tcg/sparc64/tcg-target.c.inc | 21 -
> 1 file changed, 12 insertions(+), 9 deletions(-)
Reviewed-by: Peter Maydell
thanks
-- PMM
We cannot use the generic reentrancy guard in the LSI code, so
we have to manually prevent endless reentrancy here. The problematic
lsi_execute_script() function has already a way to detect whether
too many instructions have been executed - we just have to slightly
change the logic here that it als
Hey Laurent,
I was having some issues reproducing this bug, but that looks like a
likely explanation!
Should I resubmit the patch with that diff applied?
Thanks!
On 5/16/2023 10:11 AM, Laurent Vivier wrote:
Le 15/05/2023 à 17:50, Laurent Vivier a écrit :
Le 15/05/2023 à 15:55, Richard Hend
Daniel P. Berrangé writes:
> On Tue, May 16, 2023 at 10:47:52AM +0200, Markus Armbruster wrote:
[...]
>> So, this is basically a way to retrieve an eBPF program by some
>> well-known name.
>>
>> Ignorant question: how are these programs desposited?
>
> The eBPF code blob is linked into QEMU at
On Tue, May 16, 2023 at 12:23:28PM +0200, Markus Armbruster wrote:
> Daniel P. Berrangé writes:
>
> > On Tue, May 16, 2023 at 10:47:52AM +0200, Markus Armbruster wrote:
>
> [...]
>
> >> So, this is basically a way to retrieve an eBPF program by some
> >> well-known name.
> >>
> >> Ignorant que
Doesn't apply to current master anymore, and patchew couldn't apply it,
either[*]. I'll look at v5. Thanks!
[*] https://patchew.org/QEMU/20230512143240.192504-1-het.g...@nutanix.com/
On Mon, 15 May 2023 at 15:37, Richard Henderson
wrote:
>
> Hosts using Intel and AMD AVX cpus are quite common.
> Add fast paths through ldst_atomicity using this.
>
> Only enable with CONFIG_INT128; some older clang versions do not
> support __int128_t, and the inline assembly won't work on struc
On Tue May 16, 2023 at 7:32 PM AEST, Daniel Henrique Barboza wrote:
>
>
> On 5/15/23 06:26, Nicholas Piggin wrote:
> > A store to MMCR0 with PMCjCE=1 fails to update hflags correctly and
> > results in hflags mismatch:
> >
> >qemu: fatal: TCG hflags mismatch (current:0x2408003d rebuilt:0x240a0
The commit b3aa2f2128 (target/arm: provide stubs for more external
debug registers) was added to handle HyperV's unconditional usage of
Debug Communications Channel. It turns out that Linux will similarly
break if you enable CONFIG_HVC_DCC "ARM JTAG DCC console".
Extend the registers we RAZ/WI set
Le 16/05/2023 à 12:20, Afonso Bordado a écrit :
Hey Laurent,
I was having some issues reproducing this bug, but that looks like a likely
explanation!
Should I resubmit the patch with that diff applied?
No, I'm going to update it.
Thanks,
Laurent
Thanks!
On 5/16/2023 10:11 AM, Laurent Vi
On Mon, 15 May 2023 at 15:38, Richard Henderson
wrote:
>
> Drop the target-specific trampolines for the standard slow path.
> This lets us use tcg_out_helper_{ld,st}_args, and handles the new
> atomicity bits within MemOp.
>
> At the same time, use the full load/store helpers for user-only mode.
>
This patch series creates a mandatory python virtual environment
("venv") during configure time and uses it to ensure the availability of
meson and sphinx.
See https://www.qemu.org/2023/03/24/python/ for motivations. The summary
is that the goal of this series is to ensure that the `python` used t
From: John Snow
Pylint 2.17.x decided that SocketAddrT was a bad name for a Type Alias for some
reason. Sure, fine, whatever.
Signed-off-by: John Snow
Reviewed-by: Daniel P. Berrangé
Message-Id: <20230511035435.734312-3-js...@redhat.com>
Signed-off-by: Paolo Bonzini
---
python/setup.cfg | 1
From: John Snow
This is a routine that is designed to print some usable info for human
beings back out to the terminal if/when "mkvenv ensure" fails to locate
or install a package during configure time, such as meson or sphinx.
Since we are requiring that "meson" and "sphinx" are installed to th
"make check-minreqs" runs pip without the --disable-pip-version-check
option, which causes the obnoxious "A new release of pip available"
message.
Recent versions of pip also complain that some of the dependencies in
our virtual environment rely on "setup.py install" instead of providing
a pyproje
From: John Snow
NetBSD removes some packages from the Python stdlib, but only
re-packages them for Python 3.10. Switch to using Python 3.10.
Signed-off-by: John Snow
Reviewed-by: Daniel P. Berrangé
Message-Id: <20230511035435.734312-13-js...@redhat.com>
Signed-off-by: Paolo Bonzini
---
tests
From: John Snow
distlib is usually not installed on Linux distribution, but it is vendored
into pip. Because the virtual environment has pip via ensurepip, we
can piggy-back on pip's vendored version. This could break if they move
our cheese in the future, but the fix would be simply to require
From: John Snow
Python virtual environments do not typically nest; they may inherit from
the top-level system packages or not at all.
For our purposes, it would be convenient to emulate "nested" virtual
environments to allow callers of the configure script to install
specific versions of python
From: John Snow
This commit changes how we detect and install meson. It notably removes
'--meson='.
Currently, configure creates a lightweight Python virtual environment
unconditionally using the user's configured $python that inherits system
packages. Temporarily, we forced the use of meson sou
The version of pyflakes that is listed in python/tests/minreqs.txt
breaks on Python 3.8 with the following message:
AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT'
Now that we do not support EOL'd Python versions anymore, we can
update to newer, fixed versions. It is a good
From: John Snow
This is a workaround intended for Debian 10, where the debian-patched
pip does not function correctly if accessed from within a virtual
environment.
We don't support Debian 10 as a build platform any longer, though we do
still utilize it for our build-tricore-softmmu CI test. It'
From: John Snow
Several debian-based tests need the python3-venv dependency as a
consequence of Debian debundling the "ensurepip" module normally
included with Python.
As mkvenv.py stands as of this commit, Debian requires EITHER:
(A) setuptools and pip, or
(B) ensurepip
mkvenv is a few second
This is only available in Python 3.7+.
Signed-off-by: Paolo Bonzini
Signed-off-by: John Snow
Message-Id: <20230511035435.734312-26-js...@redhat.com>
Signed-off-by: Paolo Bonzini
---
python/scripts/mkvenv.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/python/scripts/mkvenv.py b/python/s
From: John Snow
This is a teeny-tiny script that just downloads any packages we want to
vendor from PyPI and stores them in qemu.git/python/wheels/. If I'm hit
by a meteor, it'll be easy to replicate what I have done in order to
udpate the vendored source.
We don't really care which python runs
From: John Snow
NetBSD cannot successfully run "ensurepip" without access to the pyexpat
module, which NetBSD debundles. Like the Debian patch, it would be
strictly faster long term to install pip/setuptools, and I recommend
developers at their workstations take that approach instead.
For the pu
From: John Snow
In the event that there's no vendored source present and no sufficient
version of $package can be found, we will attempt to connect to PyPI to
install the package if '--disable-pypi' was not passed.
This means that PyPI access is "enabled by default", but there are some
subtletie
From: John Snow
When docs are explicitly requested, require Sphinx>=1.6.0. When docs are
explicitly disabled, don't bother to check for Sphinx at all. If docs
are set to "auto", attempt to locate Sphinx, but continue onward if it
wasn't located.
Signed-off-by: Paolo Bonzini
Signed-off-by: John
* T.J. Alumbaugh (talum...@google.com) wrote:
> Working Set Reporting supported in virtio-balloon.
> - adds working set reporting and notification vqueues
> - QMP API additions:
>- guest-ws property on balloon
>- generates QMP WS_EVENT when new reports available
>- ws_config, ws_requ
From: John Snow
When creating a virtual environment that inherits system packages,
script entry points (like "meson", "sphinx-build", etc) are not
re-generated with the correct shebang. When you are *inside* of the
venv, this is not a problem, but if you are *outside* of it, you will
not have a s
From: John Snow
This patch changes how the avocado tests are provided, ever so
slightly. Instead of creating a new testing venv, use the
configure-provided 'pyvenv' instead, and install optional packages into
that.
Signed-off-by: John Snow
Message-Id: <20230511035435.734312-20-js...@redhat.com>
From: John Snow
This patch changes the configure script so that it always creates and
uses a python virtual environment unconditionally.
Meson bootstrapping is temporarily altered to force the use of meson
from git or vendored source (as packaged in our source tarballs). A
subsequent commit rest
From: John Snow
If we begin requiring Python 3.7+, a few platforms are going to need to
install an additional Python interpreter package.
As a courtesy to the user, suggest the optional package they might need
to install. This will hopefully minimize any downtime caused by the
change in Python d
From: John Snow
This command is to be used to add various packages (or ensure they're
already present) into the configure-provided venv in a modular fashion.
Examples:
mkvenv ensure --online --dir "${source_dir}/python/wheels/" "meson>=0.61.5"
mkvenv ensure --online "sphinx>=1.6.0"
mkvenv ensur
From: John Snow
Debian debundles ensurepip for python; NetBSD debundles pyexpat but
ensurepip needs pyexpat. Try our best to offer a helpful error message
instead of just failing catastrophically.
Signed-off-by: John Snow
Message-Id: <20230511035435.734312-5-js...@redhat.com>
Signed-off-by: Pao
From: John Snow
Signed-off-by: Paolo Bonzini
---
python/scripts/mkvenv.py | 67 ++--
1 file changed, 64 insertions(+), 3 deletions(-)
diff --git a/python/scripts/mkvenv.py b/python/scripts/mkvenv.py
index 9e50bfb1778b..7fc30dc1b3e8 100644
--- a/python/script
Python 3.6 was EOL 2021-12-31. Newer versions of upstream libraries have
begun dropping support for this version and it is becoming more
cumbersome to support. Avocado-framework and qemu.qmp each have their
own reasons for wanting to drop Python 3.6, but won't until QEMU does.
Versions of Python a
From: John Snow
Move this option back from meson into configure for the purposes of
using the configuration value to bootstrap Sphinx in different ways
based on this value.
Signed-off-by: John Snow
Message-Id: <20230511035435.734312-21-js...@redhat.com>
Signed-off-by: Paolo Bonzini
---
config
From: John Snow
Now that meson is installed from a vendored wheel, we don't need the git
submodule anymore. Drop it.
Signed-off-by: John Snow
Message-Id: <20230511035435.734312-19-js...@redhat.com>
Signed-off-by: Paolo Bonzini
---
.gitmodules | 3 ---
meson | 1 -
2 files changed, 4 del
From: John Snow
This script will be responsible for building a lightweight Python
virtual environment at configure time. It works with Python 3.6 or
newer.
It has been designed to:
- work *offline*, no PyPI required.
- work *quickly*, The fast path is only ~65ms on my machine.
- work *robustly*,
1 - 100 of 376 matches
Mail list logo