On 12/29/21 17:57, Fabiano Rosas wrote:
The next patch will start accessing the excp_vectors array earlier in
the function, so add a bounds check as first thing here.
This converts the empty return on POWERPC_EXCP_NONE to an error. This
exception number never reaches this function and if it does
For Radix translation, the EA range is 64-bits. when EA(2:11) are
nonzero, a segment interrupt should occur.
Signed-off-by: Cédric Le Goater
---
target/ppc/mmu-radix64.h | 1 +
target/ppc/mmu-radix64.c | 5 +
2 files changed, 6 insertions(+)
diff --git a/target/ppc/mmu-radix64.h b/target/pp
On 2021/12/30 6:52, Philippe Mathieu-Daudé wrote:
sysbus_get_connected_irq() and sysbus_is_irq_connected() are only
used by platform-bus.c; restrict them to hw/core/ by adding a local
"sysbus-internal.h" header.
Signed-off-by: Philippe Mathieu-Daudé
---
hw/core/sysbus-internal.h | 16 ++
Hi,
On 2021/12/30 6:52, Philippe Mathieu-Daudé wrote:
qdev_get_gpio_out_connector() is called by sysbus_get_connected_irq()
which is only used by platform-bus.c; restrict it to hw/core/ by
adding a local "qdev-internal.h" header.
Signed-off-by: Philippe Mathieu-Daudé
---
hw/core/qdev-interna
On Fri, Dec 31, 2021 at 11:26 AM Weiwei Li wrote:
>
> From: liweiwei
You missed here, "From" should match "SoB" name
>
> Co-authored-by: ardxwe
> Signed-off-by: Weiwei Li
> Signed-off-by: Junqiang Wang
> Reviewed-by: Richard Henderson
> ---
> target/riscv/cpu.c | 12
> t
COLO dose not support postcopy migration and remove the Fixme.
Signed-off-by: Zhang Chen
---
migration/migration.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/migration/migration.c b/migration/migration.c
index 2afa77da03..3fac9c67ca 100644
--- a/migration/migr
The MIGRATION_STATUS_ACTIVE indicates that migration is running.
Remove it to be handled by the default operation,
It should be part of the unknown ending states.
Signed-off-by: Zhang Chen
---
migration/migration.c | 6 --
1 file changed, 6 deletions(-)
diff --git a/migration/migration.c b/
> -Original Message-
> From: Li Zhijian
> Sent: Friday, December 31, 2021 1:09 PM
> To: th...@redhat.com; peter.mayd...@linaro.org; f4...@amsat.org
> Cc: qemu-devel@nongnu.org; Zhang, Chen ; Li
> Zhijian
> Subject: [PATCH] MAINTAINERS: email address change
>
> Fujitsu's mail service h
In the migration_completion() no other status is expected, for
example MIGRATION_STATUS_CANCELLING, MIGRATION_STATUS_CANCELLED, etc.
Signed-off-by: Zhang Chen
---
migration/migration.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/migration.c b/migration/migration
This series solved some fixme and comments in code.
Please see the details in each patch commit message.
Zhang Chen (3):
migration/migration.c: Add missed default error handler for migration
state
migration/migration.c: Avoid COLO boot in postcopy migration
migration/migration.c: Remove
Fixes the build on a mips64 host. Prior to the break, we identified
the arch via the __mips__ define; afterward we use meson's
host_machine.cpu_family(). Restore the previous combination.
Fixes: 823eb013452e ("configure, meson: move ARCH to meson.build")
Reported-by: Philippe Mathieu-Daudé
Sign
On 12/30/21 4:55 PM, Philippe Mathieu-Daudé wrote:
The following changes since commit d5a9f352896fe43183ef01072b374e89a3488315:
Merge tag 'pull-jobs-2021-12-29' of
https://src.openvz.org/scm/~vsementsov/qemu into staging (2021-12-29 14:33:23
-0800)
are available in the Git repository at:
Fujitsu's mail service has migrated to O365 months ago, the
lizhij...@cn.fujitsu.com address will stop working on 2022-06-01,
change it to my new email address lizhij...@fujitsu.com.
Signed-off-by: Li Zhijian
---
MAINTAINERS | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MAI
ping
https://patchew.org/QEMU/20211211104413.50524-1-yaroshchuk2...@gmail.com/
сб, 11 дек. 2021 г. в 13:44, Vladislav Yaroshchuk :
> macOS provides networking API for VMs called 'vmnet.framework':
> https://developer.apple.com/documentation/vmnet
>
> We can provide its support as the new QEMU ne
From: liweiwei
-- update extension check REQUIRE_ZDINX_OR_D
-- update double float point register read/write
Co-authored-by: ardxwe
Signed-off-by: Weiwei Li
Signed-off-by: Junqiang Wang
---
target/riscv/insn_trans/trans_rvd.c.inc | 319 ++--
target/riscv/translate.c
From: liweiwei
Co-authored-by: ardxwe
Signed-off-by: Weiwei Li
Signed-off-by: Junqiang Wang
Reviewed-by: Richard Henderson
---
target/riscv/cpu.c | 4
1 file changed, 4 insertions(+)
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index cc7da446f1..3dd07759e1 100644
--- a/target/r
From: liweiwei
- update extension check REQUIRE_ZHINX_OR_ZFH and
REQUIRE_ZFH_OR_ZFHMIN_OR_ZHINX_OR_ZHINXMIN
- update half float point register read/write
- disable nanbox_h check
Signed-off-by: Weiwei Li
Signed-off-by: Junqiang Wang
---
target/riscv/fpu_helper.c | 89 +
From: liweiwei
Co-authored-by: ardxwe
Signed-off-by: Weiwei Li
Signed-off-by: Junqiang Wang
---
target/riscv/cpu.c| 4
target/riscv/cpu_helper.c | 6 +-
target/riscv/csr.c| 24 +++-
target/riscv/translate.c | 5 +
4 files changed, 33 insert
This patchset implements RISC-V Float-Point in Integer Registers
extensions(Version 1.0.0-rc), which includes Zfinx, Zdinx, Zhinx and Zhinxmin
extension.
Specification:
https://github.com/riscv/riscv-zfinx/blob/main/zfinx-1.0.0-rc.pdf
The port is available here:
https://github.com/plctlab/plct
From: liweiwei
Co-authored-by: ardxwe
Signed-off-by: Weiwei Li
Signed-off-by: Junqiang Wang
Reviewed-by: Richard Henderson
---
target/riscv/cpu.c | 12
target/riscv/cpu.h | 4
target/riscv/translate.c | 8
3 files changed, 24 insertions(+)
diff --git
From: liweiwei
- update extension check REQUIRE_ZFINX_OR_F
- update single float point register read/write
- disable nanbox_s check
Co-authored-by: ardxwe
Signed-off-by: Weiwei Li
Signed-off-by: Junqiang Wang
---
target/riscv/fpu_helper.c | 89 +++
target/riscv/helpe
On Thu, Dec 23, 2021 at 05:35:37PM +, Sean Christopherson wrote:
> On Thu, Dec 23, 2021, Chao Peng wrote:
>
> > + struct file *file;
>
> Please use more descriptive names, shaving characters is not at all priority.
>
> > + u64 ofs;
>
> I believe this should be loff_t.
>
> struct
On Fri, Dec 24, 2021 at 11:53:15AM +0800, Robert Hoo wrote:
> On Thu, 2021-12-23 at 20:29 +0800, Chao Peng wrote:
> > From: "Kirill A. Shutemov"
> >
> > +static void notify_fallocate(struct inode *inode, pgoff_t start,
> > pgoff_t end)
> > +{
> > +#ifdef CONFIG_MEMFD_OPS
> > + struct shmem_ino
On Fri, Dec 24, 2021 at 12:13:51PM +0800, Chao Peng wrote:
> On Thu, Dec 23, 2021 at 06:06:19PM +, Sean Christopherson wrote:
> > On Thu, Dec 23, 2021, Chao Peng wrote:
> > > This new function establishes the mapping in KVM page tables for a
> > > given gfn range. It can be used in the memory f
在 2021/12/31 上午10:04, Bin Meng 写道:
On Thu, Dec 30, 2021 at 10:32 PM liweiwei wrote:
Signed-off-by: liweiwei
Signed-off-by: wangjunqiang
nits: looks like the best practice of the name is:
Weiwei Li and Junqiang Wang
Thanks for your comment. I'll update this later.
Acked-by: Alistair Fr
On Tue, Dec 28, 2021 at 09:48:08PM +, Sean Christopherson wrote:
> On Fri, Dec 24, 2021, Chao Peng wrote:
> > On Thu, Dec 23, 2021 at 06:02:33PM +, Sean Christopherson wrote:
> > > On Thu, Dec 23, 2021, Chao Peng wrote:
> > >
> > > In other words, there needs to be a 1:1 gfn:file+offset ma
On Thu, Dec 30, 2021 at 10:32 PM liweiwei wrote:
>
> Signed-off-by: liweiwei
> Signed-off-by: wangjunqiang
nits: looks like the best practice of the name is:
Weiwei Li and Junqiang Wang
> Acked-by: Alistair Francis
> ---
> target/riscv/cpu.c | 23 +++
> target/riscv/cpu.
Let devices specify transaction attributes when calling ld*_pci_dma().
Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.
Reviewed-by: Richard Henderson
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-22-phi...@redhat.com>
---
include/hw/pci/pci.h | 6 +++---
Let devices specify transaction attributes when calling st*_pci_dma().
Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.
Reviewed-by: Richard Henderson
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-21-phi...@redhat.com>
---
include/hw/pci/pci.h | 11 ++
dma_memory_read() returns a MemTxResult type. Do not discard
it, return it to the caller.
Update the few callers.
Reviewed-by: Richard Henderson
Reviewed-by: Cédric Le Goater
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-19-phi...@redhat.com>
---
include/hw/pci/pci
dma_memory_write() returns a MemTxResult type. Do not discard
it, return it to the caller.
Reviewed-by: Richard Henderson
Reviewed-by: Cédric Le Goater
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-18-phi...@redhat.com>
---
include/sysemu/dma.h | 20 ++--
DMA operations are run on any kind of buffer, not arrays of
uint8_t. Convert dma_buf_read/dma_buf_write functions to take
a void pointer argument and save us pointless casts to uint8_t *.
Remove this pointless casts in the megasas device model.
Reviewed-by: Klaus Jensen
Signed-off-by: Philippe M
ld*_dma() returns a MemTxResult type. Do not discard
it, return it to the caller.
Update the few callers.
Reviewed-by: Richard Henderson
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-24-phi...@redhat.com>
---
include/hw/pci/pci.h | 17 -
hw/audio/int
Let devices specify transaction attributes when calling ld*_dma().
Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.
Reviewed-by: Richard Henderson
Reviewed-by: Cédric Le Goater
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-17-phi...@redhat.com>
---
inclu
st*_dma() returns a MemTxResult type. Do not discard
it, return it to the caller.
Reviewed-by: Richard Henderson
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-23-phi...@redhat.com>
---
include/hw/pci/pci.h | 10 +-
1 file changed, 5 insertions(+), 5 deletions
Let devices specify transaction attributes when calling
dma_memory_read() or dma_memory_write().
Patch created mechanically using spatch with this script:
@@
expression E1, E2, E3, E4;
@@
(
- dma_memory_read(E1, E2, E3, E4)
+ dma_memory_read(E1, E2, E3, E4, MEMTXATTRS_UNSPECIFIED)
|
Let devices specify transaction attributes when calling dma_buf_rw().
Keep the default MEMTXATTRS_UNSPECIFIED in the 2 callers.
Reviewed-by: Klaus Jensen
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-11-phi...@redhat.com>
---
softmmu/dma-helpers.c | 11 ++-
Let devices specify transaction attributes when calling
dma_buf_read().
Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.
Reviewed-by: Klaus Jensen
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-13-phi...@redhat.com>
---
include/sysemu/dma.h | 2 +-
hw/id
Let devices specify transaction attributes when calling st*_dma().
Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.
Reviewed-by: Richard Henderson
Reviewed-by: Cédric Le Goater
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-16-phi...@redhat.com>
---
inclu
Let devices specify transaction attributes when calling pci_dma_rw().
Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.
Reviewed-by: Klaus Jensen
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-10-phi...@redhat.com>
---
include/hw/pci/pci.h | 10 ++
Let devices specify transaction attributes when calling
dma_buf_write().
Keep the default MEMTXATTRS_UNSPECIFIED in the few callers.
Reviewed-by: Klaus Jensen
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-12-phi...@redhat.com>
---
include/sysemu/dma.h | 2 +-
hw/id
Let devices specify transaction attributes when calling
dma_memory_rw().
Reviewed-by: Richard Henderson
Reviewed-by: Li Qiang
Reviewed-by: Edgar E. Iglesias
Signed-off-by: Philippe Mathieu-Daudé
Acked-by: Stefan Hajnoczi
Message-Id: <20211223115554.3155328-5-phi...@redhat.com>
---
include/hw
dma_memory_rw() returns a MemTxResult type. Do not discard
it, return it to the caller.
Since dma_buf_rw() was previously returning the QEMUSGList
size not consumed, add an extra argument where this size
can be stored.
Update the 2 callers.
Reviewed-by: Klaus Jensen
Signed-off-by: Philippe Math
DMA operations are run on any kind of buffer, not arrays of
uint8_t. Convert dma_buf_rw() to take a void pointer argument
to save us pointless casts to uint8_t *.
Reviewed-by: Klaus Jensen
Signed-off-by: Philippe Mathieu-Daudé
Message-Id: <20211223115554.3155328-8-phi...@redhat.com>
---
softmmu
We will add the MemTxAttrs argument to dma_memory_rw() in
the next commit. Since dma_memory_rw_relaxed() is only used
by dma_memory_rw(), modify it first in a separate commit to
keep the next commit easier to review.
Reviewed-by: Richard Henderson
Reviewed-by: Li Qiang
Reviewed-by: Edgar E. Igle
Let devices specify transaction attributes when calling
dma_memory_set().
Reviewed-by: Richard Henderson
Reviewed-by: Li Qiang
Reviewed-by: Edgar E. Iglesias
Signed-off-by: Philippe Mathieu-Daudé
Acked-by: Stefan Hajnoczi
Message-Id: <20211223115554.3155328-3-phi...@redhat.com>
---
include/h
Let devices specify transaction attributes when calling
dma_memory_valid().
Reviewed-by: Richard Henderson
Reviewed-by: Li Qiang
Reviewed-by: Edgar E. Iglesias
Signed-off-by: Philippe Mathieu-Daudé
Acked-by: Stefan Hajnoczi
Message-Id: <20211223115554.3155328-2-phi...@redhat.com>
---
include
While the reply queue values fit in 16-bit, they are accessed
as 32-bit:
661:s->reply_queue_head = ldl_le_pci_dma(pcid, s->producer_pa);
662:s->reply_queue_head %= MEGASAS_MAX_FRAMES;
663:s->reply_queue_tail = ldl_le_pci_dma(pcid, s->consumer_pa);
664:s->reply_queue_tail %=
The following changes since commit d5a9f352896fe43183ef01072b374e89a3488315:
Merge tag 'pull-jobs-2021-12-29' of
https://src.openvz.org/scm/~vsementsov/qemu into staging (2021-12-29 14:33:23
-0800)
are available in the Git repository at:
https://github.com/philmd/qemu.git tags/memory-api-2
Let devices specify transaction attributes when calling
dma_memory_map().
Patch created mechanically using spatch with this script:
@@
expression E1, E2, E3, E4;
@@
- dma_memory_map(E1, E2, E3, E4)
+ dma_memory_map(E1, E2, E3, E4, MEMTXATTRS_UNSPECIFIED)
Reviewed-by: Richard Henderson
The phi...@redhat.com email address will stop working on
2022-01-01, change it to my personal email address.
Update .mailmap in case anyone wants to send me an email
because of some past commit I authored.
Reviewed-by: Richard Henderson
Signed-off-by: Philippe Mathieu-Daudé
---
v2: Fixed .mailm
On 12/31/21 00:54, Richard Henderson wrote:
> The cross-i386-tci test has timeouts because we're no longer
> actually applying the timeout that we desired. Hack around it.
>
> Fixes: 23a77b2d18b8 ("build-system: clean up TCG/TCI configury")
> Signed-off-by: Richard Henderson
> ---
> tests/tcg/M
On 12/30/21 17:07, Philippe Mathieu-Daudé wrote:
> On 12/23/21 12:55, Philippe Mathieu-Daudé wrote:
>> Hi Peter and Paolo.
>>
>> This series contains all the uncontroversary patches from
>> the "improve DMA situations, avoid re-entrancy issues"
>> earlier series. The rest will be discussed on top.
On 12/23/21 12:55, Philippe Mathieu-Daudé wrote:
> Since the previous commit, dma_buf_rw() returns a MemTxResult
> type. Do not discard it, return it to the caller.
>
> Since both dma_buf_read/dma_buf_write functions were previously
> returning the QEMUSGList size not consumed, add an extra argume
The cross-i386-tci test has timeouts because we're no longer
actually applying the timeout that we desired. Hack around it.
Fixes: 23a77b2d18b8 ("build-system: clean up TCG/TCI configury")
Signed-off-by: Richard Henderson
---
tests/tcg/Makefile.target | 12 +---
1 file changed, 5 insert
On 12/30/21 23:00, Richard Henderson wrote:
> On 12/30/21 6:58 AM, Philippe Mathieu-Daudé wrote:
>> +Philippe Mathieu-Daudé
>
> Actually, it looks like the mailmap is backward.
Doh of course >_<
Thanks for catching it.
В Пн, 27/12/2021 в 14:31 -0500, Igor Mammedov пишет:
> if QEMU is started with used provided SLIC table blob,
>
> -acpitable sig=SLIC,oem_id='CRASH
> ',oem_table_id="ME",oem_rev=2210,asl_compiler_id="",asl_compiler_re
> v=,data=/dev/null
> it will assert with:
>
> hw/acpi/aml-buil
On 12/23/21 18:19, Richard Henderson wrote:
On 12/23/21 12:36 PM, Daniel Henrique Barboza wrote:
This reorg is breaking PMU-EBB tests, unfortunately. These tests are run from
the kernel
tree [1] and I test them inside a pSeries TCG guest. You'll need to apply
patches 9 and
10 of [2] beforeh
On 12/29/21 8:57 AM, Fabiano Rosas wrote:
The next patch will start accessing the excp_vectors array earlier in
the function, so add a bounds check as first thing here.
This converts the empty return on POWERPC_EXCP_NONE to an error. This
exception number never reaches this function and if it do
On 12/29/21 8:57 AM, Fabiano Rosas wrote:
None of the interrupt setup code touches 'vector', so we can move it
earlier in the function. This will allow us to later move the System
Call Vectored setup that is on the top level into the
POWERPC_EXCP_SYSCALL_VECTORED code block.
This patch also move
On 12/30/21 6:58 AM, Philippe Mathieu-Daudé wrote:
+Philippe Mathieu-Daudé
Actually, it looks like the mailmap is backward.
r~
On 12/30/21 6:58 AM, Philippe Mathieu-Daudé wrote:
thephi...@redhat.com email address will stop working on
2022-01-01, change it to my personal email address.
Update .mailmap in case anyone wants to send me an email
because of some past commit I authored.
Signed-off-by: Philippe Mathieu-Daudé
在 2021/12/24 13:12, Peter Xu 写道:
On Tue, Dec 14, 2021 at 07:07:33PM +0800, huang...@chinatelecom.cn wrote:
From: Hyman Huang(黄勇)
Setup a negative feedback system when vCPU thread
handling KVM_EXIT_DIRTY_RING_FULL exit by introducing
throttle_us_per_full field in struct CPUState. Sleep
throt
22.12.2021 14:41, Hanna Reitz wrote:
This option does basically the same as --fork does for qemu-nbd:
Can we share the code?
Before this patch we already have --fork code-path of qemu-nbd and -daemonize
code-path of QEMU.. Now we have one more. Did you consider improving and
sharing the old
postcopy_send_discard_bm_ram() always return zero. Since it can't
fail, simplify and do not return anything.
Signed-off-by: Philippe Mathieu-Daudé
---
Based-on: <20211224065000.97572-1-pet...@redhat.com>
---
migration/ram.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a
On 12/23/21 12:55, Philippe Mathieu-Daudé wrote:
> Hi Peter and Paolo.
>
> This series contains all the uncontroversary patches from
> the "improve DMA situations, avoid re-entrancy issues"
> earlier series. The rest will be discussed on top.
>
> The only operations added are:
> - take MemTxAttrs
On 12/24/21 07:49, Peter Xu wrote:
> It will just never fail. Drop those return values where they're constantly
> zeros.
>
> A tiny touch-up on the tracepoint so trace_ram_postcopy_send_discard_bitmap()
> is called after the logic itself (which sounds more reasonable).
>
> Reviewed-by: Dr. David
22.12.2021 14:41, Hanna Reitz wrote:
We want to add a --daemonize argument to QSD's command line. This will
require forking the process before we do any complex initialization
steps, like setting up the block layer or QMP. Therefore, we must scan
the command line for it long before our current
On 12/24/21 07:49, Peter Xu wrote:
> It'll be easier to read the name rather than index of sub-cmd when debugging.
>
> Signed-off-by: Peter Xu
> ---
> migration/savevm.c | 3 ++-
> migration/trace-events | 2 +-
> 2 files changed, 3 insertions(+), 2 deletions(-)
> diff --git a/migration/tra
On 12/24/21 07:50, Peter Xu wrote:
> Remove the old two tracepoints and they're even near each other:
>
> trace_loadvm_postcopy_handle_run_cpu_sync()
> trace_loadvm_postcopy_handle_run_vmstart()
>
> Add trace_loadvm_postcopy_handle_run_bh() with a finer granule trace.
>
> Signed-off-by:
On 12/24/21 07:49, Peter Xu wrote:
> The enablement of postcopy listening has a few steps, add a few tracepoints to
> be there ready for some basic measurements for them.
>
> Signed-off-by: Peter Xu
> ---
> migration/savevm.c | 9 -
> migration/trace-events | 2 +-
> 2 files changed,
On 12/24/21 07:49, Peter Xu wrote:
> I planned to add "#ifdef DEBUG_POSTCOPY" around the function too because
> otherwise it'll be compiled into qemu binary even if it'll never be used.
> Then
> I found that maybe it's easier to just drop it for good..
>
> Reviewed-by: Dr. David Alan Gilbert
>
On 12/24/21 07:49, Peter Xu wrote:
> It always return zero, because it just can't go wrong so far. Simplify the
> code with no functional change.
>
> Reviewed-by: Dr. David Alan Gilbert
> Signed-off-by: Peter Xu
> ---
> migration/ram.c | 11 ++-
> 1 file changed, 2 insertions(+), 9 del
On 12/30/21 00:33, Philippe Mathieu-Daudé wrote:
> GitLab defaults [1] to upload artifacts only when the job succeeds,
> which is not helpful to troubleshoot failing tests. Switch to
> always upload artifacts by default for QEMU jobs, by setting the
> 'artifacts:when' keyword in the global default
Thanks for your review.
在 2021/12/30 下午10:46, Philippe Mathieu-Daudé 写道:
Hi,
On 12/30/21 15:30, liweiwei wrote:
- share it between target/arm and target/riscv
"Share sm4_sbox between ARM and RISCV targets."?
Yes. sm4 related instruction in scalar crypto extension will use sm4_sbox.
Sign
The phi...@redhat.com email address will stop working on
2022-01-01, change it to my personal email address.
Update .mailmap in case anyone wants to send me an email
because of some past commit I authored.
Signed-off-by: Philippe Mathieu-Daudé
---
.gitlab-ci.d/edk2/Dockerfile | 2 +-
.mailmap
Hi,
On 12/30/21 15:30, liweiwei wrote:
>- share it between target/arm and target/riscv
"Share sm4_sbox between ARM and RISCV targets."?
>
> Signed-off-by: liweiwei
> Signed-off-by: wangjunqiang
> ---
> crypto/meson.build | 1 +
> crypto/sm4.c | 48 +
Signed-off-by: liweiwei
Signed-off-by: wangjunqiang
---
target/riscv/crypto_helper.c| 446 ++
target/riscv/helper.h | 43 +++
target/riscv/insn32.decode | 42 +++
target/riscv/insn_trans/trans_rvk.c.inc | 467 ++
Signed-off-by: liweiwei
Signed-off-by: wangjunqiang
---
disas/riscv.c | 171 +-
1 file changed, 170 insertions(+), 1 deletion(-)
diff --git a/disas/riscv.c b/disas/riscv.c
index 793ad14c27..eb1d36d1e5 100644
--- a/disas/riscv.c
+++ b/disas/riscv.c
- reuse partial instructions of Zbb/Zbc extensions
- add brev8, packh, unzip, zip, etc.
Signed-off-by: liweiwei
Signed-off-by: wangjunqiang
---
target/riscv/bitmanip_helper.c | 74 ++
target/riscv/helper.h | 5 +
target/riscv/insn32.decode
- share it between target/arm and target/riscv
Signed-off-by: liweiwei
Signed-off-by: wangjunqiang
---
crypto/meson.build | 1 +
crypto/sm4.c | 48 ++
include/crypto/sm4.h | 6 +
meson | 2 +-
target/
Signed-off-by: liweiwei
Signed-off-by: wangjunqiang
Acked-by: Alistair Francis
---
target/riscv/cpu.c | 23 +++
target/riscv/cpu.h | 13 +
2 files changed, 36 insertions(+)
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index 6ef3314bce..961c5f4334 100644
Signed-off-by: liweiwei
Signed-off-by: wangjunqiang
---
target/riscv/cpu.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index 961c5f4334..6575ec8cfa 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -668,6 +668,19 @@ static
This patchset implements RISC-V K-extension v1.0.0.rc6 version instructions.
Partial instructions are reused from B-extension.
Specification:
https://github.com/riscv/riscv-crypto
The port is available here:
https://github.com/plctlab/plct-qemu/tree/plct-k-upstream-v3
To test rvk implementation
- add SEED CSR
- add USEED, SSEED fields for MSECCFG CSR
Signed-off-by: liweiwei
Signed-off-by: wangjunqiang
---
target/riscv/cpu_bits.h | 9 +
target/riscv/csr.c | 73 +
target/riscv/pmp.h | 8 +++--
3 files changed, 87 insertions(+
From: Anup Patel
The AIA device emulation (such as AIA IMSIC) should be able to set
(or provide) AIA ireg read-modify-write callback for each privilege
level of a RISC-V HART.
Signed-off-by: Anup Patel
Signed-off-by: Anup Patel
Reviewed-by: Alistair Francis
---
target/riscv/cpu.h| 23
From: Anup Patel
To facilitate software development of RISC-V systems with large number
of HARTs, we increase the maximum number of allowed CPUs to 512 (2^9).
We also add a detailed source level comments about limit defines which
impact the physical address space utilization.
Signed-off-by: Anu
From: Anup Patel
The RISC-V AIA (Advanced Interrupt Architecture) defines a new
interrupt controller for MSIs (message signal interrupts) called
IMSIC (Incoming Message Signal Interrupt Controller). The IMSIC
is per-HART device and also suppport virtualizaiton of MSIs using
dedicated VS-level gue
From: Anup Patel
We have two new machine options "aia" and "aia-guests" available
for the RISC-V virt machine so let's document these options.
Signed-off-by: Anup Patel
Signed-off-by: Anup Patel
Reviewed-by: Alistair Francis
---
docs/system/riscv/virt.rst | 16
1 file change
From: Anup Patel
We extend virt machine to emulate both AIA IMSIC and AIA APLIC
devices only when "aia=aplic-imsic" parameter is passed along
with machine name in the QEMU command-line. The AIA IMSIC is
only a per-HART MSI controller so we use AIA APLIC in MSI-mode
to forward all wired interrupts
From: Anup Patel
We should use the AIA INTC compatible string in the CPU INTC
DT nodes when the CPUs support AIA feature. This will allow
Linux INTC driver to use AIA local interrupt CSRs.
Signed-off-by: Anup Patel
Signed-off-by: Anup Patel
Reviewed-by: Alistair Francis
---
hw/riscv/virt.c |
From: Anup Patel
We add "x-aia" command-line option for RISC-V HART using which
allows users to force enable CPU AIA CSRs without changing the
interrupt controller available in RISC-V machine.
Signed-off-by: Anup Patel
Signed-off-by: Anup Patel
Reviewed-by: Alistair Francis
---
target/riscv/
From: Anup Patel
The AIA specificaiton adds interrupt filtering support for M-mode
and HS-mode. Using AIA interrupt filtering M-mode and H-mode can
take local interrupt 13 or above and selectively inject same local
interrupt to lower privilege modes.
At the moment, we don't have any local interr
From: Anup Patel
We extend virt machine to emulate AIA APLIC devices only when
"aia=aplic" parameter is passed along with machine name in QEMU
command-line. When "aia=none" or not specified then we fallback
to original PLIC device emulation.
Signed-off-by: Anup Patel
Signed-off-by: Anup Patel
From: Anup Patel
The RISC-V AIA (Advanced Interrupt Architecture) defines a new
interrupt controller for wired interrupts called APLIC (Advanced
Platform Level Interrupt Controller). The APLIC is capabable of
forwarding wired interupts to RISC-V HARTs directly or as MSIs
(Message Signaled Interup
From: Anup Patel
The AIA specification adds new CSRs for RV32 so that RISC-V hart can
support 64 local interrupts on both RV32 and RV64.
Signed-off-by: Anup Patel
Signed-off-by: Anup Patel
Reviewed-by: Alistair Francis
---
target/riscv/cpu.h| 14 +-
target/riscv/cpu_helper.c | 10 +
From: Anup Patel
The machine or device emulation should be able to force set certain
CPU features because:
1) We can have certain CPU features which are in-general optional
but implemented by RISC-V CPUs on the machine.
2) We can have devices which require a certain CPU feature. For example,
From: Anup Patel
The AIA specification defines IMSIC interface CSRs for easy access
to the per-HART IMSIC registers without using indirect xiselect and
xireg CSRs. This patch implements the AIA IMSIC interface CSRs.
Signed-off-by: Anup Patel
Signed-off-by: Anup Patel
---
target/riscv/csr.c |
From: Anup Patel
The AIA specification defines [m|s|vs]iselect and [m|s|vs]ireg CSRs
which allow indirect access to interrupt priority arrays and per-HART
IMSIC registers. This patch implements AIA xiselect and xireg CSRs.
Signed-off-by: Anup Patel
Signed-off-by: Anup Patel
---
target/riscv/c
From: Anup Patel
The RISC-V AIA specification extends RISC-V local interrupts and
introduces new CSRs. This patch adds defines for the new AIA CSRs.
Signed-off-by: Anup Patel
Signed-off-by: Anup Patel
Reviewed-by: Alistair Francis
---
target/riscv/cpu_bits.h | 127 +++
1 - 100 of 112 matches
Mail list logo