On Mon, Feb 24, 2025 at 9:01 PM Gerd Hoffmann wrote:
>
> Hi,
>
> > /* should only be called once */
> > -if (ovmf_flash_parsed) {
> > +if (ovmf_flash_parsed && !force) {
>
> I think it makes more sense to clear ovmf_flash_parsed when replacing
> the firmware (instead of adding the f
On Mon, Feb 24, 2025 at 9:17 PM Gerd Hoffman wrote:
>
> On Fri, Feb 14, 2025 at 09:04:07PM +0530, Ani Sinha wrote:
> > VM firmware update is a mechanism where the virtual machines can use their
> > preferred and trusted firmware image in their execution environment without
> > having to depend on
On Mon, 24 Feb 2025 20:03:56 +0100
Eric Auger wrote:
> Hi Alex,
>
> On 2/20/25 11:48 PM, Alex Williamson wrote:
> > The memory and IO BARs for devices are only accessible in the D0
> > power state. In other power states the PCI spec defines that the
> > device should respond to TLPs and message
John, how does this mix with the linting parts of your "[PATCH 00/10]
qapi: misc testing and doc patches"?
Hi!
I'm facing a weird hang in iotest 233 on my Fedora 41 laptop. When running
./check -raw 233
the test simply hangs. Looking at the log, the last message is "== check
plain client to TLS server fails ==". I added some debug messages, and it
seems like the previous NBD server is not corr
Hello Fabiano,
On Tue, 18 Feb 2025 at 19:58, Fabiano Rosas wrote:
> >> > +static void test_multifd_postcopy_tcp_cancel(void)
> >> > +{
> >> > +postcopy_ram = true;
> >> > +test_multifd_tcp_cancel();
> >> > +postcopy_ram = false;
> >>
> >> You could pass this in, there's just one other
Test 162 recently started failing for me for no obvious reasons (I
did not spot any suspicious commits in this area), but looking in
the 162.out.bad log file, there was a suspicious message at the end:
qemu-nbd: Cannot lock pid file: Resource temporarily unavailable
And indeed, the test starts t
> +fn derive_opaque_or_error(input: DeriveInput) ->
> Result {
> +is_transparent_repr(&input, "#[derive(Wrapper)]")?;
> +
> +let name = &input.ident;
> +let field = &get_unnamed_field(&input, "#[derive(Wrapper)]")?;
> +let typ = &field.ty;
> +
> +// TODO: how to add "::qemu_api
On Fri, Feb 21, 2025 at 06:03:35PM +0100, Paolo Bonzini wrote:
> Date: Fri, 21 Feb 2025 18:03:35 +0100
> From: Paolo Bonzini
> Subject: [PATCH 08/15] rust: timer: wrap QEMUTimer with Opaque<>
> X-Mailer: git-send-email 2.48.1
>
> Signed-off-by: Paolo Bonzini
> ---
> meson.build|
Hi All,
> From: cy_liu
> Sent: Tuesday, February 25, 2025 3:34 PM
> To: cyliu0926 ; Cédric Le Goater ;
> Peter Maydell ; Steven Lee
> ; Troy Lee ; Jamin Lin
> ; Andrew Jeffery
> ; Joel Stanley ; open
> list:ASPEED BMCs ; open list:All patches CC here
>
> Subject: [PATCH v4 0/4] Support HACE to A
Introduce a new ast2700 class to support AST2700.
Signed-off-by: Jamin Lin
Reviewed-by: Andrew Jeffery
---
include/hw/misc/aspeed_hace.h | 1 +
hw/misc/aspeed_hace.c | 20
2 files changed, 21 insertions(+)
diff --git a/include/hw/misc/aspeed_hace.h b/include/hw/mi
Fix coding style issues from checkpatch.pl.
Signed-off-by: Jamin Lin
Reviewed-by: Cédric Le Goater
---
hw/misc/aspeed_hace.c | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/hw/misc/aspeed_hace.c b/hw/misc/aspeed_hace.c
index e3f7df2e86..18b85081c7 100644
--- a/h
This patch series is from
https://patchwork.kernel.org/project/qemu-devel/cover/20250213033531.3367697-1-jamin_...@aspeedtech.com/.
To expedite the review process, I have separated the HACE patches portion from
the
https://patchwork.kernel.org/project/qemu-devel/cover/20250213033531.3367697-1-j
The HACE controller between AST2600 and AST2700 are almost identical.
The HACE controller registers base address starts at 0x1207_ and
its alarm interrupt is connected to GICINT4.
Signed-off-by: Jamin Lin
Reviewed-by: Andrew Jeffery
---
hw/arm/aspeed_ast27x0.c | 15 +++
1 file c
Currently, it does not support the CRYPT command. Instead, it only sends an
interrupt to notify the firmware that the crypt command has completed.
It is a temporary workaround to resolve the boot issue in the Crypto Manager
Self Test.
Introduce a new "use_crypt_workaround" class attribute and set
On 25/02/2025 04:00, Peter Xu wrote:
> On Fri, Feb 21, 2025 at 02:36:11PM +0800, Li Zhijian wrote:
>> Since we have disabled RDMA + postcopy, it's safe to remove
>> the migration_in_postcopy() that follows the migration_rdma().
>>
>> Signed-off-by: Li Zhijian
>> ---
>> migration/ram.c | 2 +-
On 25/02/2025 03:58, Peter Xu wrote:
> On Fri, Feb 21, 2025 at 02:36:09PM +0800, Li Zhijian wrote:
>> Similar to migration_channels_and_transport_compatible(), introduce a
>> new helper migration_capabilities_and_transport_compatible() to check if
>> the capabilites is compatible with the transpo
This patch series introduces temperature event notification support in
the UFS emulation and adds corresponding test cases to validate the feature.
The first patch enables the UFS emulation to generate temperature-related
events, including high and low temperature notifications, following the
UFS
> +/// Creates a new opaque object with zeroed contents.
> +///
> +/// # Safety
> +///
> +/// Ultimately the pointer to the returned value will be dereferenced
> +/// in another unsafe block, for example when passing it to a C function.
> +/// However, this function is u
This patch introduces temperature event notification support to the UFS
emulation. It enables the emulated UFS device to generate
temperature-related events, including high and low temperature
notifications, in compliance with the UFS specification.
With this feature, UFS drivers can now handle te
This commit adds tests to verify the correctness of query attribute
results related to the temperature feature. It ensures that querying
temperature attributes returns expected values.
Signed-off-by: Keoseong Park
---
tests/qtest/ufs-test.c | 24
1 file changed, 24 inser
Thanks for your support . It will be a great help for us .
On Mon, 24 Feb 2025 at 3:03 PM, Philippe Mathieu-Daudé
wrote:
> Cc'ing Gustavo who maintains the IVSHMEM device.
>
> On 23/2/25 15:48, Jayakrishnan A wrote:
> > Hi Team ,
> >
> > Seeking help on implementing sync over ivshmem shared memo
From: Tomasz Jeznach
Now that we have every piece in place we can advertise CAP_HTM to
software, allowing any HPM aware driver to make use of the counters.
HPM is enabled/disabled via the 'hpm-counters' attribute. Default value
is 31, max value is also 31. Setting it to zero will disable HPM
sup
This header is incomplete, i.e. it is using definitions that are being
supplied by the .c files that are including it.
Adding this header into a fresh .c file will result in errors:
/home/danielhb/work/qemu/hw/riscv/riscv-iommu.h:30:17: error: field
‘parent_obj’ has incomplete type
30 | D
Add a handful of trace events to allow for an easier time debugging the
HPM feature.
Signed-off-by: Daniel Henrique Barboza
Acked-by: Alistair Francis
---
hw/riscv/riscv-iommu-hpm.c | 10 ++
hw/riscv/trace-events | 5 +
2 files changed, 15 insertions(+)
diff --git a/hw/riscv/
From: Tomasz Jeznach
Add the relevant HPM (High Performance Monitor) bits that we'll be using
in the next patches.
Signed-off-by: Tomasz Jeznach
Signed-off-by: Daniel Henrique Barboza
Acked-by: Alistair Francis
---
hw/riscv/riscv-iommu-bits.h | 47 +
1 fil
From: Tomasz Jeznach
To support hpm events mmio writes, done via
riscv_iommu_process_hpmevt_write(), we're also adding the 'hpm-counters'
IOMMU property that are used to determine the amount of counters
available in the IOMMU.
Note that everything we did so far didn't change any IOMMU behavior
b
From: Tomasz Jeznach
This function will increment a specific counter, generating an interrupt
when an overflow occurs.
Some extra changes in riscv-iommu.c were required to add this new
helper in riscv-iommu-hpm.c:
- RISCVIOMMUContext was moved to riscv-iommu.h, making it visible in
riscv-iom
Hi,
In this version no major changes were made. Just a rebase with
alistair/riscv-to-apply.next and acks from Alistair.
All patches acked.
v1 link:
https://lore.kernel.org/qemu-riscv/20241205133003.184581-1-dbarb...@ventanamicro.com/
Daniel Henrique Barboza (3):
hw/riscv/riscv-iommu.h: add m
From: Tomasz Jeznach
The HPM (Hardware Performance Monitor) support consists of almost 7
hundred lines that would be put on top of the base riscv-iommu
emulation.
To avoid clogging riscv-iommu.c, add a separated riscv-iommu-hpm file
that will contain HPM specific code.
We'll start by adding ris
From: Tomasz Jeznach
The next HPM related changes requires the HPM overflow timer to be
initialized by the riscv-iommu base emulation.
Signed-off-by: Tomasz Jeznach
Signed-off-by: Daniel Henrique Barboza
Acked-by: Alistair Francis
---
hw/riscv/riscv-iommu-hpm.c | 36 +
This creates meson test targets for the python linters which has a
number of benefits:
* They can be invoked in the same manner as all other tests
using meson or ninja, or the top level Makefile wrappers
* They avoid the extra indirection of running via avocado
* They get run by default when
It seems everytime I post some new patches which touch python code I
end up forgetting to run the extra non-default 'make check' target from
the python/ subdir.
IMHO, if we're going to pick up on linter failures in review feedback
(which is a reasonable thing to want to do), then we should be runn
Use an annotation inline to the file instead of in setup.cfg
This has the added advantage that the mypy checks now pass when
using 'mypy /path/to/python/qemu' as well as 'mypy -p qemu'.
Signed-off-by: Daniel P. Berrangé
---
python/qemu/qmp/qmp_tui.py| 12 ++--
python/qemu/utils/qom_
Legacy VBIOS support was removed in Gen 11 and later IGD devices. While
we usually uses romfile for IGD-related DXE drivers, it's not always
necessary. Remove the ROM BAR requirement for legacy mode to support
newer devices without a specified romfile.
Signed-off-by: Tomita Moeko
---
hw/vfio/igd
The 'qapi.backend.QAPIBackend' class defines an API contract for code
generators. The current generator is put into a new class
'qapi.backend.QAPICBackend' and made to be the default impl.
A custom generator can be requested using the '-k' arg which takes a
fully qualified python class name
qa
From: Tomasz Jeznach
RISCV_IOMMU_REG_IOCOUNTINH is done by riscv_iommu_process_iocntinh_cy(),
which is called during riscv_iommu_mmio_write() callback via a new
riscv_iommu_pricess_hpm_writes() helper.
Signed-off-by: Tomasz Jeznach
Signed-off-by: Daniel Henrique Barboza
Acked-by: Alistair Fran
Both x-igd-opregion option and legacy mode require identical steps to
set up OpRegion for IGD devices. Consolidate these steps into a single
vfio_pci_igd_setup_opregion function.
The function call in pci.c is wrapped with ifdef temporarily to prevent
build error for non-x86 archs, it will be remov
qsd-migrate is currently only working for raw, qcow2 and qed.
Other formats are failing, e.g. because they don't support migration.
Thus let's limit this test to the three usable formats now.
Suggested-by: Kevin Wolf
Signed-off-by: Thomas Huth
---
tests/qemu-iotests/tests/qsd-migrate | 2 +-
1
Set for 68020 and 68030, but does nothing so far.
Reviewed-by: Philippe Mathieu-Daudé
Signed-off-by: Richard Henderson
---
target/m68k/cpu.h | 2 ++
target/m68k/cpu.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/target/m68k/cpu.h b/target/m68k/cpu.h
index 7b90e1e58f..b394d8bbb9 100644
This patchset removes some legacy checks and converts the legacy mode
implicitly enabled by BDF 00:02.0 into x-igd-* options, including:
* Removing PCI ROM BAR and VGA IO/MMIO range check before applying quirk
* Using unified x-igd-opregion option for OpRegion access.
* Introducing new x-igd-lpc op
From: Tomasz Jeznach
RISCV_IOMMU_REG_IOHPMCYCLES writes are done by
riscv_iommu_process_hpmcycle_write(), called by the mmio write callback
via riscv_iommu_process_hpm_writes().
Signed-off-by: Tomasz Jeznach
Signed-off-by: Daniel Henrique Barboza
Reviewed-by: Alistair Francis
---
hw/riscv/ri
On 2/20/25 11:48 PM, Alex Williamson wrote:
> The pm_cap on the PCIExpressDevice object can be distilled down
> to the new instance on the PCIDevice object.
>
> Cc: Michael S. Tsirkin
> Cc: Marcel Apfelbaum
> Signed-off-by: Alex Williamson
Reviewed-by: Eric Auger
Eric
> ---
> hw/pci-bridg
On Mon, Feb 24, 2025 at 11:50:50AM -0500, Steven Sistare wrote:
> > > I can do that, but it would add cycles. Is this considered a high
> > > performance
> > > path that may be called frequently?
> >
> > AFAICT, any vIOMMU mapping isn't high perf path. In this specific path,
> > the refcount op
Am 22. Februar 2025 17:52:27 UTC schrieb BALATON Zoltan :
>Hello,
>
>This series adds NVRAM and support for -kernel, -initrd and -append
>options to the amigaone machine. This makes it easier to boot AmigaOS
>and avoids a crash in the guest when it tries to access NVRAM.
Looks like the above in
Hi everyone,
The QEMU v9.2.2 stable release is now available.
You can grab the tarball from our download page here:
https://www.qemu.org/download/#source
https://download.qemu.org/qemu-9.2.2.tar.xz
https://download.qemu.org/qemu-9.2.2.tar.xz.sig (signature)
v9.2.2 is now tagged in the o
Signed-off-by: Daniel Henrique Barboza
Reviewed-by: Alistair Francis
---
docs/specs/riscv-iommu.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/docs/specs/riscv-iommu.rst b/docs/specs/riscv-iommu.rst
index b1538c9ead..000c7e1f57 100644
--- a/docs/specs/riscv-iommu.rst
+++ b/docs/specs/
On 2/24/25 12:27, Richard Henderson wrote:
On 2/6/25 11:56, Richard Henderson wrote:
Based-on:20250201164012.1660228-1-peter.mayd...@linaro.org
("[PATCH v2 00/69] target/arm: FEAT_AFP and FEAT_RPRES")
This implements the Scalar Matrix Extensions, version 2, plus two
trivial extensions for float
On Mon, Feb 24, 2025 at 03:14:00PM +1000, Alistair Francis wrote:
> On Fri, Feb 21, 2025 at 4:31 AM Conor Dooley wrote:
> >
> > +cc qemu-riscv, Alistar.
> >
> > On Fri, Feb 14, 2025 at 07:24:37AM +0100, Sebastian Huber wrote:
> > > Booting the microchip-icicle-kit machine using the latest PolarFir
vfio_populate_vga is no longer called in igd.c. Make it static.
Signed-off-by: Tomita Moeko
---
hw/vfio/pci.c | 2 +-
hw/vfio/pci.h | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 89d900e9cf..1c45e3987e 100644
--- a/hw/vfio/pci.c
+++ b/hw
A new option will soon be introduced to control whether to apply the
LPC bridge/Host bridge ID quirk for the removal of implicit legacy mode.
To prepare for this, move the LPC bridge initialization into a separate
function.
Signed-off-by: Tomita Moeko
---
hw/vfio/igd.c | 125
The IO BAR4 of IGD devices contains a pair of 32-bit address/data
registers, MMIO_Index (0x0) and MMIO_Data (0x4), which provide access
to the MMIO BAR0 (GTTMMADR) from IO space. These registers are probably
only used by the VBIOS, and are not documented by intel. The observed
layout of MMIO_Index
Though GTT Stolen Memory (GSM) is right below Data Stolen Memory (DSM)
in host address space, direct access to GSM is prohibited, and it is
not mapped to guest address space. Both host and guest accesses GSM
indirectly through the second half of MMIO BAR0 (GTTMMADR).
Guest firmware only need to re
On 2/20/25 11:48 PM, Alex Williamson wrote:
> This is now redundant to PCIDevice.pm_cap.
>
> Cc: Cédric Le Goater
> Signed-off-by: Alex Williamson
Reviewed-by: Eric Auger
Eric
> ---
> hw/vfio/pci.c | 9 -
> hw/vfio/pci.h | 1 -
> 2 files changed, 4 insertions(+), 6 deletions(-)
>
>
IGD devices require device-specific quirk to be applied to their PCI
config space. Currently, it is put in the BAR4 quirk that does nothing
to BAR4 itself. Add a placeholder for PCI config space quirks to hold
that quirk later.
Signed-off-by: Tomita Moeko
---
hw/vfio/pci-quirks.c | 5 +
hw/v
On Mon, 24 Feb 2025, Bernhard Beschow wrote:
Am 22. Februar 2025 17:52:27 UTC schrieb BALATON Zoltan :
Hello,
This series adds NVRAM and support for -kernel, -initrd and -append
options to the amigaone machine. This makes it easier to boot AmigaOS
and avoids a crash in the guest when it tries t
Regression introduced by cf76c4
(hw/misc: Add nr_regs and cold_reset_values to NPCM CLK)
cold_reset_values has a different size, depending on device used
(NPCM7xx vs NPCM8xx). However, s->regs has a fixed size, which matches
NPCM8xx. Thus, when initializing a NPCM7xx, we go past cold_reset_values
Hello,
This patch introduces a buffer-overflow, now reported by address sanitizer.
I sent a patch:
https://lore.kernel.org/qemu-devel/20250224205053.104959-1-
pierrick.bouv...@linaro.org/T/#u
You're welcome to review it, or fix the problem differently if there is
a better approach.
Regards,
Thanks!
On Mon, Feb 24, 2025 at 12:51 PM Pierrick Bouvier <
pierrick.bouv...@linaro.org> wrote:
> Regression introduced by cf76c4
> (hw/misc: Add nr_regs and cold_reset_values to NPCM CLK)
>
> cold_reset_values has a different size, depending on device used
> (NPCM7xx vs NPCM8xx). However, s->reg
Thanks! I can review the patch.
On Mon, Feb 24, 2025 at 12:52 PM Pierrick Bouvier <
pierrick.bouv...@linaro.org> wrote:
> Hello,
>
> This patch introduces a buffer-overflow, now reported by address sanitizer.
>
> I sent a patch:
> https://lore.kernel.org/qemu-devel/20250224205053.104959-1-
> pier
On Thu, 20 Feb 2025, Bernhard Beschow wrote:
Am 13. Februar 2025 00:13:24 UTC schrieb BALATON Zoltan :
Yes, your DTB based board code is a nice way to create different
machines as the DTB already describes these offsets and irq connections
and your code seems to be quite simple so I think it's
Modern EFI-based system and drivers like i915 no longer use VGA IO/MMIO
registers. Currently, legacy mode checks if the VGA decoding cycle is
claimed by IGD, and implicitly exposes VGA address spaces for device.
As we are going to remove legacy mode, remove this implicit behavior.
If users want to
On 2/24/2025 2:20 PM, Peter Xu wrote:
On Mon, Feb 24, 2025 at 11:50:50AM -0500, Steven Sistare wrote:
I can do that, but it would add cycles. Is this considered a high performance
path that may be called frequently?
AFAICT, any vIOMMU mapping isn't high perf path. In this specific path,
the
The actual IO BAR4 write quirk in vfio_probe_igd_bar4_quirk was removed
in previous change, leaving the function not matching its name, so move
it into the newly introduced vfio_config_quirk_setup. There is no
functional change in this commit.
For now, to align with current legacy mode behavior, i
IGD-specific quirks are implicitly enabled by legacy mode, which is
toggled by assigning IGD to 00:02.0. This patch replaces legacy mode
with explicit options for these quirks. The OpRegion quirk is merged to
the exisiting x-igd-opregion option, while a new option x-igd-lpc is
defined for the LPC b
On Fri, Feb 21, 2025 at 02:36:05PM +0800, Li Zhijian wrote:
> Address an error in RDMA-based migration by ensuring RDMA is prioritized
> when saving pages in `ram_save_target_page()`.
>
> Previously, the RDMA protocol's page-saving step was placed after other
> protocols due to a refactoring in co
On Fri, Feb 21, 2025 at 02:36:09PM +0800, Li Zhijian wrote:
> Similar to migration_channels_and_transport_compatible(), introduce a
> new helper migration_capabilities_and_transport_compatible() to check if
> the capabilites is compatible with the transport.
>
> Currently, only move the capabiliti
On Fri, Feb 21, 2025 at 02:36:11PM +0800, Li Zhijian wrote:
> Since we have disabled RDMA + postcopy, it's safe to remove
> the migration_in_postcopy() that follows the migration_rdma().
>
> Signed-off-by: Li Zhijian
> ---
> migration/ram.c | 2 +-
> migration/rdma.c | 5 +++--
> 2 files chang
On Fri, Feb 21, 2025 at 02:36:10PM +0800, Li Zhijian wrote:
> It's believed that RDMA + postcopy-ram has been broken for a while.
> Rather than spending time re-enabling it, let's simply disable it as a
> trade-off.
>
> Signed-off-by: Li Zhijian
Reviewed-by: Peter Xu
--
Peter Xu
On Fri, Feb 21, 2025 at 02:36:12PM +0800, Li Zhijian wrote:
> This qtest requires there is a RDMA(RoCE) link in the host.
> In order to make the test work smoothly, introduce a
> scripts/rdma-migration-helper.sh to
> - setup a new Soft-RoCE(aka RXE) if it's root
> - detect existing RoCE link
>
> T
This enables the exceptions raised by the actual store
to be reflected as a failure.
Reviewed-by: Philippe Mathieu-Daudé
Signed-off-by: Richard Henderson
---
target/m68k/translate.c | 107
1 file changed, 53 insertions(+), 54 deletions(-)
diff --git a/t
According to the ARM manual, when SSE=1 the data item must be sign
extended.
Signed-off-by: Joelle van Dyne
---
target/arm/hvf/hvf.c | 4
1 file changed, 4 insertions(+)
diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
index 0afd96018e..43cf250eef 100644
--- a/target/arm/hvf/hvf.c
On Mon, 24 Feb 2025 19:37:03 +0100
Eric Auger wrote:
> Hi Alex,
>
> On 2/20/25 11:48 PM, Alex Williamson wrote:
> > Switch callers directly initializing the PCI PM capability with
> > pci_add_capability() to use pci_pm_init().
> >
> > Cc: Dmitry Fleytman
> > Cc: Akihiko Odaki
> > Cc: Jason Wan
Hi Alex,
On 2/20/25 11:48 PM, Alex Williamson wrote:
> Switch callers directly initializing the PCI PM capability with
> pci_add_capability() to use pci_pm_init().
>
> Cc: Dmitry Fleytman
> Cc: Akihiko Odaki
> Cc: Jason Wang
> Cc: Stefan Weil
> Cc: Sriram Yagnaraman
> Cc: Keith Busch
> Cc:
Hi Alex,
On 2/20/25 11:48 PM, Alex Williamson wrote:
> The memory and IO BARs for devices are only accessible in the D0
> power state. In other power states the PCI spec defines that the
> device should respond to TLPs and messages with an Unsupported
> Request response. The closest we can com
On 2/20/25 11:48 PM, Alex Williamson wrote:
> We want the device in the D0 power state going into reset, but the
> config write can enable the BARs in the address space, which are
> then removed from the address space once we clear the memory enable
> bit in the command register. Re-order to c
On 2/6/25 11:56, Richard Henderson wrote:
Based-on:20250201164012.1660228-1-peter.mayd...@linaro.org
("[PATCH v2 00/69] target/arm: FEAT_AFP and FEAT_RPRES")
This implements the Scalar Matrix Extensions, version 2, plus two
trivial extensions for float16 and bfloat16.
This hasn't been tested mu
On Fri, Feb 21, 2025 at 04:44:48AM -0500, Manish Mishra wrote:
> We allocate extra metadata SKBs in case of zerocopy send. This metadata memory
> is accounted for in the OPTMEM limit. If there is any error with sending
> zerocopy data or if zerocopy was skipped, these metadata SKBs are queued in
>
U-Boot can start and boot an OS in both qemu-x86 and qemu-x86_64 but it
is not perfect.
With both builds, executing the VESA ROM causes an intermittent hang, at
least on some AMD CPUs.
With qemu-x86_64 kvm cannot be used since the move to long mode (64-bit)
is done in a way that works on real har
Real-time kernels such as RTEMS or Zephyr may use a static device tree
built into the kernel image. Do not require to use the -dtb option if
-kernel is used for the microchip-icicle-kit machine. Issue a warning
if no device tree is provided by the user since the machine does not
generate one.
Si
If the kernel entry is in the high DRAM area, place the FDT into this
area.
Signed-off-by: Sebastian Huber
Reviewed-by: Alistair Francis
---
hw/riscv/microchip_pfsoc.c | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/hw/riscv/microchip_pfsoc.c b/hw/riscv/microchip
Signed-off-by: Sebastian Huber
---
hw/misc/mchp_pfsoc_sysreg.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/hw/misc/mchp_pfsoc_sysreg.c b/hw/misc/mchp_pfsoc_sysreg.c
index 7876fe0c5b..08196525aa 100644
--- a/hw/misc/mchp_pfsoc_sysreg.c
+++ b/hw/misc/mchp_pfsoc_sysreg.c
@@ -27,7 +27,
This property enables the setting of the CLINT timebase frequency
through the command line, for example:
-machine microchip-icicle-kit,clint-timebase-frequency=1000
Signed-off-by: Sebastian Huber
Reviewed-by: Philippe Mathieu-Daudé
---
hw/riscv/microchip_pfsoc.c | 49
Booting the microchip-icicle-kit machine using the latest PolarFire SoC
Hart Software Services (HSS) no longer works since Qemu lacks support
for several registers (clocks, DRAM controller). Also reading from the
SDCard does not work currently.
In order to allow tests runs for real-time kernels su
Hi Saanjh,
here is a minimal patch that builds one shared library per target (arch,
mode) where arch is cpu arch, and mode is system or user, and launch
system-aarch64 through a simple driver:
https://github.com/pbo-linaro/qemu/commit/fbb39cc64f77d4bf1e5e50795c75b62735bf5c5f
With this, it co
Further customize the -bios and -kernel options behaviour for the
microchip-icicle-kit machine. If "-bios none -kernel filename" is
specified, then do not load a firmware and instead only load and start
the kernel image.
Signed-off-by: Sebastian Huber
---
hw/riscv/microchip_pfsoc.c | 57 +++
Mention that running the HSS no longer works. Document the changed boot
options. Reorder documentation blocks. Update URLs.
Signed-off-by: Sebastian Huber
---
docs/system/riscv/microchip-icicle-kit.rst | 124 +++--
1 file changed, 43 insertions(+), 81 deletions(-)
diff --git
target_ulong -> TARGET_FMT_ld
vaddr -> VADDR_PRIx
uint32_t -> PRIx32
Signed-off-by: Jiaxun Yang
---
target/loongarch/tcg/insn_trans/trans_atomic.c.inc | 2 +-
target/loongarch/tcg/tlb_helper.c | 2 +-
target/loongarch/tcg/translate.c | 5 ++---
3 files changed,
As per LoongArch Reference Manual - Volume 1: Basic Architecture,
4.2.2. IOCSR Access Instructions:
The reading value is described as "writes it to the general register rd
after symbolic expansion." which means it should be sign extended.
Signed-off-by: Jiaxun Yang
---
target/loongarch/tcg/iocs
Those results are all targeting TCGv values, which means they should
be in target_ulong type.
Signed-off-by: Jiaxun Yang
---
target/loongarch/helper.h | 8
target/loongarch/tcg/iocsr_helper.c | 8
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/target/l
gen_ll should use tcg_gen_qemu_ld_tl to load t1, as t1 is
in TCGv which means it should be a tl type value.
Reviewed-by: Philippe Mathieu-Daudé
Signed-off-by: Jiaxun Yang
---
target/loongarch/tcg/insn_trans/trans_atomic.c.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t
As per manual, the source of PGD CSR is relevant to highest bit of
BADV. In LoongArch32, all CSRs are 32 bits only, thus we should check
bit 31 of BADV to determine PGDH/PGDL for LoongArch32.
Signed-off-by: Jiaxun Yang
---
target/loongarch/tcg/csr_helper.c | 2 +-
1 file changed, 1 insertion(+),
All CSRs are meant to be target_ulong wide in our setting.
Signed-off-by: Jiaxun Yang
---
target/loongarch/helper.h| 14 +++---
target/loongarch/tcg/op_helper.c | 4 ++--
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/target/loongarch/helper.h b/target/loongarch/
Hi all,
This series is a collection of small fixes I made to TCG for
LoongArch32.
There are still many thing broken, especially on CSRs. More
series following. However this is sufficient to boot 32bit
kernel.
Thanks for revivewing!
Signed-off-by: Jiaxun Yang
---
Changes in v2:
- Addressing min
Introduce max32 CPU type as it's necessary to demonstrate all
features we have in LA32.
Signed-off-by: Jiaxun Yang
---
target/loongarch/cpu.c | 152 +++--
1 file changed, 122 insertions(+), 30 deletions(-)
diff --git a/target/loongarch/cpu.c b/target/
As per "LoongArch Reference Manual Volume 1: Basic Architecture" v1.1.0,
"2.2 Table 2. Application-level basic integer instructions in LA32",
rotr.w and rotri.w is a part of LA32 basic integer instructions.
Note that those instructions are indeed not in LA32R subset, however QEMU
is not performing
gen_sc should use make_address_i to obtain source address
to ensure that address is properly truncated.
Another temp value is created in middle to avoid data corruption
as make_address_i may return the same memory location as src1.
Signed-off-by: Jiaxun Yang
---
target/loongarch/tcg/insn_trans/
The vesa display is widely used on hardware, but it is a bit of a pain
with QEMU. It requires executing option ROMs, which either doesn't work
with kvm, or is difficult to do in a kvm/QEMU-friendly way.
THe bochs display is probably better anyway, so switch to that. It works
fine with kvm as it do
Move over to use this API before making the code even more complicated.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add new patch to use the new e820 API
arch/x86/cpu/qemu/e820.c | 48 ++--
1 file changed, 12 insertions(+), 36 deletions(-)
diff --git a/
Provide the 'dhry' command, which helps to check that kvm is being used
properly with QEMU.
Signed-off-by: Simon Glass
---
(no changes since v1)
configs/qemu-x86_64_defconfig | 1 +
configs/qemu-x86_defconfig| 1 +
2 files changed, 2 insertions(+)
diff --git a/configs/qemu-x86_64_defconfi
1 - 100 of 226 matches
Mail list logo