Drive backup is a read only operation on source bs. We want to allow
this specific case to enable image-fleecing. Note that when
image-fleecing job starts, the job still add its blocker to source bs,
and any other operation on it will be blocked by that.
Signed-off-by: Fam Zheng
---
block.c | 2
Dropping intermediate could be useful both for commit and stream, and
BDS refcnt plus bdrv_swap could do most of the job nicely. It also needs
to work with op blockers.
Signed-off-by: Fam Zheng
---
block.c| 146 +
block/commit.c |
Now it's safe to allow reference for backing_hd in the interface.
Signed-off-by: Fam Zheng
---
block.c | 26 --
1 file changed, 24 insertions(+), 2 deletions(-)
diff --git a/block.c b/block.c
index 4498ce7..be58d93 100644
--- a/block.c
+++ b/block.c
@@ -1396,12 +1396,34
This reuses the new bdrv_drop_intermediate.
Signed-off-by: Fam Zheng
---
block/stream.c | 30 +-
1 file changed, 1 insertion(+), 29 deletions(-)
diff --git a/block/stream.c b/block/stream.c
index dd0b4ac..9cdcf0e 100644
--- a/block/stream.c
+++ b/block/stream.c
@@ -5
Similar to drive-backup, but this command uses a device id as target
instead of creating/opening an image file.
Also add blocker on target bs, since the target is also a named device
now.
Signed-off-by: Fam Zheng
---
block/backup.c | 21 +
blockdev.c | 47 +++
It makes no sense to check for "any" blocker on bs, we are here only
because of the mechanical conversion from in_use to op_blockers. Remove
it now, and let the callers check specific operation types. Backup and
mirror already have it, add checker to stream and commit.
Signed-off-by: Fam Zheng
--
BlockDriverState.op_blockers is an array of lists with BLOCK_OP_TYPE_MAX
elements. Each list is a list of blockers of an operation type
(BlockOpType), that marks this BDS as currently blocked for a certain
type of operation with reason errors stored in the list. The rule of
usage is:
* BDS user w
This is the common but non-trivial steps to assign or change the
backing_hd of BDS.
Signed-off-by: Fam Zheng
---
block.c | 39 ++-
include/block/block.h | 1 +
2 files changed, 31 insertions(+), 9 deletions(-)
diff --git a/block.c b/block.c
ind
This drops BlockDriverState.in_use with op_blockers:
- Call bdrv_op_block_all in place of bdrv_set_in_use(bs, 1).
- Call bdrv_op_unblock_all in place of bdrv_set_in_use(bs, 0).
- Check bdrv_op_is_blocked() in place of bdrv_in_use(bs).
The specific types are used, e.g. in place of startin
This makes use of op_blocker and blocks all the operations except for
commit target, on each BlockDriverState->backing_hd.
The asserts for op_blocker in bdrv_swap are removed because with this
change, the target of block commit has at least the backing blocker of
its child, so the assertion is not
This adds the enum of all the operations that can be taken on a block
device.
Signed-off-by: Fam Zheng
---
include/block/block.h | 19 +++
1 file changed, 19 insertions(+)
diff --git a/include/block/block.h b/include/block/block.h
index 963a61f..9626650 100644
--- a/include/bloc
This series adds for point-in-time snapshot NBD exporting based on
blockdev-backup (variant of drive-backup with existing device as target).
We get a thin point-in-time snapshot by COW mechanism of drive-backup, and
export it through built in NBD server. The steps are as below:
1. (SHELL) qemu-i
Le Sunday 26 Jan 2014 à 20:02:41 (+0100), Max Reitz a écrit :
> Setting bs->options in bdrv_file_open() is not necessary if it is
> already done in bdrv_open().
>
> Signed-off-by: Max Reitz
> ---
> block.c | 9 +++--
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/block.c
Le Sunday 26 Jan 2014 à 20:02:40 (+0100), Max Reitz a écrit :
> The fail paths of bdrv_file_open() and bdrv_open() naturally exhibit
> similarities, thus it is possible to reuse the one from bdrv_open() and
> shorten the one in bdrv_file_open() accordingly.
>
> Signed-off-by: Max Reitz
> ---
> b
Le Sunday 26 Jan 2014 à 20:02:39 (+0100), Max Reitz a écrit :
> Change bdrv_file_open() to take a simple pointer to an already existing
> BDS instead of an indirect one. The BDS will be created in bdrv_open()
> if necessary.
>
> Signed-off-by: Max Reitz
> ---
> block.c | 29 ++---
Le Sunday 26 Jan 2014 à 20:02:38 (+0100), Max Reitz a écrit :
> Remove the reference parameter and the related handling code from
> bdrv_file_open(), since it exists in bdrv_open() now as well.
>
> Signed-off-by: Max Reitz
> ---
> block.c | 33 +++--
> 1 file changed,
Le Sunday 26 Jan 2014 à 20:02:37 (+0100), Max Reitz a écrit :
> Remove the check whether options is NULL form bdrv_file_open() and rely
s/form/for/g ?
> on the one in bdrv_open() instead.
>
> Signed-off-by: Max Reitz
> ---
> block.c | 15 +--
> 1 file changed, 5 insertions(+), 10 del
Le Sunday 26 Jan 2014 à 20:02:36 (+0100), Max Reitz a écrit :
> Add the bdrv_open() option BDRV_O_PROTOCOL which results in passing the
> call to bdrv_file_open(). Additionally, make bdrv_file_open() static and
> therefore bdrv_open() the only way to call it.
>
> Consequently, all existing calls t
Hi,all
A instance was created by virsh command in the CentOS 6.4.
The LUN in the Storage Array Network(SAN) was attached to the instance with the
following xml.
A scsi report command was executed in the instance, for example "sg_luns
/dev/vdb". However, It
Le Sunday 26 Jan 2014 à 20:02:34 (+0100), Max Reitz a écrit :
> Make bdrv_open() take a pointer to a BDS pointer, similarly to
> bdrv_file_open(). If a pointer to a NULL pointer is given, bdrv_open()
> will create a new BDS with an empty name; if the BDS pointer is not
> NULL, that existing BDS wil
On 26/01/14 5:12 PM, Anthony Liguori wrote:
On Sun, Jan 26, 2014 at 1:40 PM, Brad Smith wrote:
On 26/01/14 1:06 PM, Paolo Bonzini wrote:
Il 26/01/2014 02:37, Brad Smith ha scritto:
Reviewed-by: Stefan Hajnoczi
Is there some sort of process I am missing to have build fixes
commited so
Hi,
Things have been moving a bit more slowly upstream than the should
recently. I'm happy to announce though that Peter Maydell has agreed
to take on the responsibility of being a committer and will now be
able to apply pull requests and push patches.
I will continue to apply pull requests and
On Sun, Jan 26, 2014 at 1:40 PM, Brad Smith wrote:
> On 26/01/14 1:06 PM, Paolo Bonzini wrote:
>>
>> Il 26/01/2014 02:37, Brad Smith ha scritto:
>
>
Reviewed-by: Stefan Hajnoczi
>>>
>>>
>>> Is there some sort of process I am missing to have build fixes
>>> commited so that QEMU
Even with Windows 98 SE (English and Italian) still not working. Got
some ideas?
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1272796
Title:
Windows 98 First Edition emulation problems
Status in
Signed-off-by: Beniamino Galvani
---
hw/arm/allwinner-a10.c | 16
hw/arm/cubieboard.c| 11 +--
include/hw/arm/allwinner-a10.h |3 +++
3 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/hw/arm/allwinner-a10.c b/hw/arm/allwinner-a10.
In some circumstances it is useful to be able to push the entire
content of a memory buffer to the fifo or to pop multiple bytes with a
single operation.
The functions fifo8_has_space() and fifo8_push_all() added by this
patch allow to perform the first kind of operation efficiently.
The function
This patch series adds support for the EMAC Fast Ethernet controller
found on Allwinner SoCs to the Allwinner A10.
Changelog:
v4: Address comments from Peter Crosthwaite and Andreas Färber:
* Add functions for multiple bytes push/pop to Fifo8
* Get rid of custom fifo implementation and use
This patch adds support for the Fast Ethernet MAC found on Allwinner
SoCs, together with a basic emulation of Realtek RTL8201CP PHY.
Since there is no public documentation of the Allwinner controller, the
implementation is based on Linux kernel driver.
Signed-off-by: Beniamino Galvani
---
defau
On 26/01/14 1:06 PM, Paolo Bonzini wrote:
Il 26/01/2014 02:37, Brad Smith ha scritto:
Reviewed-by: Stefan Hajnoczi
Is there some sort of process I am missing to have build fixes
commited so that QEMU actually builds?
Right now we have problems getting patches committed at all.
This patc
On Sun, Jan 26, 2014 at 12:42:59AM +0100, Andreas Färber wrote:
> Am 20.01.2014 00:25, schrieb Beniamino Galvani:
> > Signed-off-by: Beniamino Galvani
> > ---
> > hw/arm/allwinner-a10.c | 16
> > hw/arm/cubieboard.c|7 +++
> > include/hw/arm/allwinne
On 12/01/14 15:25, Mark Cave-Ayland wrote:
Hi Anthony,
Please pull the latest OpenBIOS binary images. In particular, these images fix
the following two bugs in SPARC32:
- Booting with OBP instead of OpenBIOS
- Booting from hard disk instead of CDROM
(https://bugs.launchpad.net/qemu/
Add a skeleton decode for the SIMD 2-reg misc group.
Signed-off-by: Peter Maydell
---
target-arm/translate-a64.c | 110 -
1 file changed, 109 insertions(+), 1 deletion(-)
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
index f7846
Make bdrv_open() take a pointer to a BDS pointer, similarly to
bdrv_file_open(). If a pointer to a NULL pointer is given, bdrv_open()
will create a new BDS with an empty name; if the BDS pointer is not
NULL, that existing BDS will be reused (in the same way as bdrv_open()
already did).
Signed-off-
Add the bdrv_open() option BDRV_O_PROTOCOL which results in passing the
call to bdrv_file_open(). Additionally, make bdrv_file_open() static and
therefore bdrv_open() the only way to call it.
Consequently, all existing calls to bdrv_file_open() have to be adjusted
to use bdrv_open() with the BDRV_
Implement the remaining integer instructions in the scalar-three-reg-same
group: SQADD, UQADD, SQSUB, UQSUB, SQSHL, UQSHL, SQRSHL, UQRSHL,
SQDMULH, SQRDMULH.
Signed-off-by: Peter Maydell
---
target-arm/translate-a64.c | 106 +
1 file changed, 87 insert
Implement the add, sub and compare ops from the SIMD "scalar three same"
group.
Signed-off-by: Peter Maydell
Reviewed-by: Richard Henderson
---
target-arm/translate-a64.c | 131 -
1 file changed, 130 insertions(+), 1 deletion(-)
diff --git a/target-a
We have macros for marking TCGv values as unused, checking if they
are unused and comparing them to each other. However these only exist
for TCGv_i32 and TCGv_i64; add them for TCGv_ptr as well.
Signed-off-by: Peter Maydell
---
tcg/tcg.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tcg
From: Alex Bennée
This implements a subset of the AdvSIMD shift operations (namely all the
none saturating or narrowing ones). The actual shift generation code
itself is common for both the scalar and vector cases but wrapped with
either vector element iteration or the fp reg access.
The roundin
Add top level decode for the A64 SIMD three regs same group
(C3.6.16), splitting it into the pairwise, logical, float and
integer subgroups.
Signed-off-by: Peter Maydell
Reviewed-by: Richard Henderson
---
target-arm/translate-a64.c | 45 -
1 file chan
On 26 January 2014 19:24, Peter Maydell wrote:
> This patch series is kind of in two parts. The first 8 patches
> are the "Neon second set" that's already been pretty much reviewed;
> I'm resending them just because there were a few minor nits that
> came up in the last round which have been fixed
Add some of the integer operations in the SIMD 3-same group:
specifically, the comparisons, addition and subtraction.
Signed-off-by: Peter Maydell
Reviewed-by: Richard Henderson
---
target-arm/translate-a64.c | 165 -
1 file changed, 164 insertions(+)
Implement the pairwise integer operations in the 3-reg-same SIMD group:
ADDP, SMAXP, SMINP, UMAXP and UMINP.
Signed-off-by: Peter Maydell
---
target-arm/translate-a64.c | 145 -
1 file changed, 144 insertions(+), 1 deletion(-)
diff --git a/target-arm/
Implement the simple 64 bit integer operations from the SIMD
scalar 2-register misc group (C3.6.12): the comparisons against
zero, plus ABS and NEG.
Signed-off-by: Peter Maydell
---
target-arm/translate-a64.c | 87 +-
1 file changed, 86 insertions(+),
Implement a simple subset of the SIMD 3-same floating point
operations. This includes a common helper function used for both
scalar and vector ops; FABD is the only currently implemented
shared op.
Signed-off-by: Peter Maydell
Reviewed-by: Richard Henderson
---
target-arm/translate-a64.c | 190
Add support for the multiply-accumulate instructions from the
SIMD three-different instructions group (C3.6.15):
* skeleton decode of unallocated encodings and split of
the group into its three sub-parts
* framework for handling the 64x64->128 widening subpart
* implementation of the multiply
Implement the SIMD 3-reg-same instructions where the size == 3 case
is reserved: SHADD, UHADD, SRHADD, URHADD, SHSUB, UHSUB, SMAX,
UMAX, SMIN, UMIN, SABD, UABD, SABA, UABA, MLA, MLS, MUL, PMUL,
SQRDMULH, SQDMULH. (None of these have scalar-3-same versions.)
This completes the non-pairwise integer i
Add support for the logical operations (ORR, AND, BIC, ORN, EOR, BSL,
BIT and BIF) from the SIMD 3 register same group (C3.6.16).
Signed-off-by: Alex Bennée
Signed-off-by: Peter Maydell
Reviewed-by: Richard Henderson
---
target-arm/translate-a64.c | 73 +
Implement the absolute-difference instructions in the SIMD
three-different group: SABAL, SABAL2, UABAL, UABAL2, SABDL,
SABDL2, UABDL, UABDL2.
Signed-off-by: Peter Maydell
Reviewed-by: Richard Henderson
---
target-arm/translate-a64.c | 35 +--
1 file changed, 33 i
Implement the instructions in the scalar pairwise group (C3.6.8).
Signed-off-by: Peter Maydell
---
target-arm/translate-a64.c | 114 -
1 file changed, 113 insertions(+), 1 deletion(-)
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.
This patch series is kind of in two parts. The first 8 patches
are the "Neon second set" that's already been pretty much reviewed;
I'm resending them just because there were a few minor nits that
came up in the last round which have been fixed:
* patch 6 added the missing SQDMULH/SQRDMULH unalloca
Implement the SIMD 3-reg-same instructions SQADD, UQADD,
SQSUB, UQSUB, SSHL, USHL, SQSHl, UQSHL, SRSHL, URSHL,
SQRSHL, UQRSHL; these are all simple calls to existing
Neon helpers. We also enable SSHL, USHL, SRSHL and URSHL
for the 3-reg-same-scalar category (but not the others
because they can have
Implement the 2-reg-misc CNT, NOT and RBIT instructions.
Signed-off-by: Peter Maydell
---
target-arm/helper.h| 1 +
target-arm/neon_helper.c | 12
target-arm/translate-a64.c | 34 --
3 files changed, 41 insertions(+), 6 deletions(-)
diff -
Add the SIMD FNEG and FABS instructions in the SIMD 2-reg-misc group.
Signed-off-by: Peter Maydell
---
target-arm/translate-a64.c | 23 ---
1 file changed, 20 insertions(+), 3 deletions(-)
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
index db89327..79
Change bdrv_file_open() to take a simple pointer to an already existing
BDS instead of an indirect one. The BDS will be created in bdrv_open()
if necessary.
Signed-off-by: Max Reitz
---
block.c | 29 ++---
1 file changed, 18 insertions(+), 11 deletions(-)
diff --git a/bl
Implement the simple 2-register-misc operations we can share
with the scalar-two-register-misc code. (SUQADD, USQADD, SQABS,
SQNEG also fall into this category, but aren't implemented in
the scalar-2-register case yet either.)
Signed-off-by: Peter Maydell
---
target-arm/translate-a64.c | 136 +++
Add the narrowing integer instructions in the 2-reg-misc class.
Signed-off-by: Peter Maydell
---
target-arm/translate-a64.c | 85 --
1 file changed, 83 insertions(+), 2 deletions(-)
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
From: Alex Bennée
Add the byte-reverse operations REV64, REV32 and REV16 from the
two-reg-misc group.
Signed-off-by: Alex Bennée
Signed-off-by: Peter Maydell
---
target-arm/translate-a64.c | 42 +-
1 file changed, 41 insertions(+), 1 deletion(-)
diff -
The fail and success paths of bdrv_file_open() may be further shortened
by reusing code already existent in bdrv_open(). This includes
bdrv_file_open() not taking the reference to options which allows the
removal of QDECREF(options) in that function.
Signed-off-by: Max Reitz
---
block.c | 33 +++
Setting bs->options in bdrv_file_open() is not necessary if it is
already done in bdrv_open().
Signed-off-by: Max Reitz
---
block.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/block.c b/block.c
index 0f2cd3f..f847c4b 100644
--- a/block.c
+++ b/block.c
@@ -956,9 +
This option is now unnecessary since specifying BDRV_O_PROTOCOL as flag
will do exactly the same.
Signed-off-by: Max Reitz
---
block.c | 30 +-
block/blkdebug.c | 2 +-
block/blkverify.c | 4 ++--
include/block/block.h | 2 +-
4 files changed
Remove the check whether options is NULL form bdrv_file_open() and rely
on the one in bdrv_open() instead.
Signed-off-by: Max Reitz
---
block.c | 15 +--
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/block.c b/block.c
index 0fb7892..c7219cb 100644
--- a/block.c
+++ b
The fail paths of bdrv_file_open() and bdrv_open() naturally exhibit
similarities, thus it is possible to reuse the one from bdrv_open() and
shorten the one in bdrv_file_open() accordingly.
Signed-off-by: Max Reitz
---
block.c | 17 +++--
1 file changed, 7 insertions(+), 10 deletions
Allow bdrv_open() to handle references to existing block devices just as
bdrv_file_open() is already capable of.
Signed-off-by: Max Reitz
---
block.c | 41 ++---
block/qcow2.c | 4 ++--
block/vmdk.c | 3 ++-
block/vvfat.c
Remove the reference parameter and the related handling code from
bdrv_file_open(), since it exists in bdrv_open() now as well.
Signed-off-by: Max Reitz
---
block.c | 33 +++--
1 file changed, 7 insertions(+), 26 deletions(-)
diff --git a/block.c b/block.c
index c721
bdrv_file_open() is now nearly a subset of bdrv_open(), except for the
fact that bdrv_file_open() is for protocols and bdrv_open() for block
drivers. It is possible to use bdrv_file_open() with a block driver, but
in that case that block driver must be explicitly specified.
Due to these great simi
Il 26/01/2014 02:37, Brad Smith ha scritto:
Reviewed-by: Stefan Hajnoczi
Is there some sort of process I am missing to have build fixes
commited so that QEMU actually builds?
Right now we have problems getting patches committed at all.
This patch and the other NetBSD patch is not lost.
From: Igor Mammedov
some *.dsl files include another *.dsl files but there weren't
any dependicies and when included file changed target table wasn't
rebuild. Fix this by using the same auto dependency generation
as for C files.
Signed-off-by: Igor Mammedov
Reviewed-by: Michael S. Tsirkin
Sign
From: Alexey Kardashevskiy
Double endianness convertion make this test failing on POWERPC machine
running in big-endian.
This fixes the test to success on big-endian host.
Signed-off-by: Alexey Kardashevskiy
Signed-off-by: Michael S. Tsirkin
---
tests/acpi-test.c | 6 +++---
1 file changed,
** Changed in: qemu
Status: New => Invalid
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1263318
Title:
Cannot add a USB 2.0 device under QEMU when running eudev
Status in QEMU:
Invalid
From: Marcel Apfelbaum
Added unit-test's expected aml files to be compared
with the actual ACPI tables.
Signed-off-by: Marcel Apfelbaum
Signed-off-by: Michael S. Tsirkin
---
tests/acpi-test-data/pc/APIC | Bin 0 -> 120 bytes
tests/acpi-test-data/pc/DSDT | Bin 0 -> 4407 bytes
tests/acpi-tes
From: Marcel Apfelbaum
This test will run only if iasl is installed on the host machine.
The test plan:
1. Dumps the ACPI tables as AML on the disk.
2. Runs iasl to disassembly the tables into ASL files.
3. Runs iasl to disassembly the offline AML files into ASL files.
4. Compares the ASL fil
From: Stefan Weil
cgcc complains that -ENOSYS is not a good value for 'bool'.
A dummy virtio will never have pending queue entries, so let us return
false.
Signed-off-by: Stefan Weil
Signed-off-by: Michael S. Tsirkin
---
hw/net/vhost_net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-
libusb calls timerfd_create() and timerfd_settime() when it's built with
timerfd support.
Command to reproduce:
qemu -sandbox on -monitor stdio -device piix3-usb-uhci,id=usb
-device usb-host,hostbus=1,hostaddr=3,id=hostdev0
Log messages:
audit(1390730418.924:135): auid=4294967295 uid=121 g
From: Igor Mammedov
.. so OSPM could notice resource conflict if there is any.
Signed-off-by: Igor Mammedov
Reviewed-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
---
hw/i386/acpi-dsdt-cpu-hotplug.dsl | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git
Document the logic behind the below/above 4G split.
Signed-off-by: Michael S. Tsirkin
---
hw/i386/pc_q35.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index 7104645..a7f6260 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -51,6 +
This will help make sure I get Cc'd on patches.
Signed-off-by: Michael S. Tsirkin
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index fb53242..adc5973 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -610,6 +610,7 @@ F: hw/*/*vhost*
virtio
M: Anth
From: Gerd Hoffmann
Map 2G (q35) of memory below 4G, so the RAM pieces
are nicely aligned to gigabyte borders.
Keep old memory layout for (a) old machine types and (b) in case all
memory fits below 4G and thus we don't have to split RAM into pieces
in the first place. The later makes sure this
From: Igor Mammedov
... for range defined at hw/acpi/ich9.c:ICH9_PROC_BASE
Signed-off-by: Igor Mammedov
Reviewed-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
---
hw/i386/acpi-dsdt-pci-crs.dsl | 7 ---
hw/i386/acpi-dsdt.dsl | 7 +++
hw/i386/q35-acpi-dsdt.dsl |
From: Marcel Apfelbaum
Scenario:
- There is a non multifunction pci device A on 00:0X.0.
- Hot-plug another multifunction pci device B at 00:0X.1.
- The operation will fail of course.
- Try to hot-plug the B device 2-3 more times, qemu will crash.
Reason: The error flow leaves the B's ad
From: Eduardo Habkost
The ram_below_4g value will be useful in other places, such as the ACPI
table code, and other code that currently requires passing
below_4g_mem_size around in function arguments.
Signed-off-by: Eduardo Habkost
Reviewed-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsir
From: Igor Mammedov
use C headers defines as source of IO base/len for respective
values in ASL code.
Signed-off-by: Igor Mammedov
Reviewed-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
---
include/hw/acpi/cpu_hotplug_defs.h | 1 +
hw/acpi/piix4.c| 5 ++---
hw/
From: Igor Mammedov
.. so that they might not be used by PCI devices.
Note:
Resort to concatenating templates with preprocessor help,
because 1.0b spec isn't supporting ConcatenateResTemplate,
as result Windows XP fails to execute PCI0._CRS method if
ConcatenateResTemplate() is used.
Signed-off
Add ACPI based PCI hotplug library with bridge hotplug
support.
Design
- each bus gets assigned "bsel" property.
- ACPI code writes this number
to a new BNUM register, then uses existing
UP/DOWN registers to probe slot status;
to eject, write number to BNUM register,
then
From: Igor Mammedov
Signed-off-by: Igor Mammedov
Reviewed-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
---
hw/i386/acpi-dsdt.hex.generated | 217 +---
hw/i386/q35-acpi-dsdt.hex.generated | 74 ++--
hw/i386/ssdt-pcihp.hex.generated|
From: Igor Mammedov
Signed-off-by: Igor Mammedov
Reviewed-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
---
hw/i386/acpi-dsdt-cpu-hotplug.dsl | 2 +-
hw/i386/acpi-dsdt.dsl | 1 +
hw/i386/q35-acpi-dsdt.dsl | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
d
This enables support for device hotplug behind
pci bridges. Bridge devices themselves need
to be pre-configured on qemu command line.
Design:
- at machine init time, assign "bsel" property to bridges with
hotplug support
- dynamically (At ACPI table read) generate ACPI code to handle
Useful for ACPI hotplug.
Signed-off-by: Michael S. Tsirkin
---
include/hw/pci/pci.h | 14 ++
hw/pci/pci.c | 28
2 files changed, 42 insertions(+)
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index 754b82d..5252346 100644
--- a/include
Add support for acpi pci hotplug using the
new infrastructure.
PIIX4 legacy interface is maintained as is for
machine types 1.7 and older.
Signed-off-by: Michael S. Tsirkin
---
include/hw/i386/pc.h | 5
hw/acpi/piix4.c | 75 +---
2 files
From: Igor Mammedov
.. use IO port 0cd8-0xcf7 range for CPU present bitmap
Signed-off-by: Igor Mammedov
Reviewed-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
---
include/hw/acpi/cpu_hotplug_defs.h | 1 +
include/hw/acpi/ich9.h | 4
hw/acpi/ich9.c
From: Marcel Apfelbaum
The asl comparison will break every time the ACPI
tables are updated. This may break the git bisect.
Instead of failing print a warning on stderr
including the retained asl files, so they can be
compared offline.
Signed-off-by: Marcel Apfelbaum
Reviewed-by: Michael S. Tsi
From: Igor Mammedov
.. so it could be used for adding CPU hotplug to Q35 machine
Add an additional header with that will be shared between
C and ASL code: include/hw/acpi/cpu_hotplug_defs.h
Signed-off-by: Igor Mammedov
Reviewed-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
---
in
From: Marcel Apfelbaum
The test checked if iasl is installed by running "iasl"
and checking the error output.
It is better to use the iasl executable as appears
in configuration.
Signed-off-by: Marcel Apfelbaum
Signed-off-by: Michael S. Tsirkin
---
tests/acpi-test.c | 31 -
From: Eduardo Habkost
The original SeaBIOS code used the RamSize variable, that was used by
SeaBIOS for the size of RAM below 4GB, not for all RAM. When copied to
QEMU, the code was changed to use the full RAM size, and this broke the
build_srat() code that handles the PCI hole.
Change build_sra
From: Marcel Apfelbaum
It seems that iasl has an issue when disassembles
some ACPI tables using the command line:
iasl -e DSDT -e SSDT -d HPET
Modified the iasl command line to "iasl -d HPET"
until the problem is solved. The command line
remained the same for DSDT and SSDT tables.
Reported-by:
Signed-off-by: Michael S. Tsirkin
---
tests/acpi-test-data/pc/DSDT | Bin 4407 -> 4582 bytes
tests/acpi-test-data/pc/SSDT | Bin 2104 -> 2200 bytes
tests/acpi-test-data/q35/DSDT | Bin 7344 -> 7438 bytes
tests/acpi-test-data/q35/SSDT | Bin 2104 -> 475 bytes
4 files changed, 0 insertions(+), 0
From: Marcel Apfelbaum
Just a refactoring, ssdt_tables name was confusing as
it included other tables as well.
Signed-off-by: Marcel Apfelbaum
Reviewed-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
---
tests/acpi-test.c | 48
1 file
From: Marcel Apfelbaum
Acpi unit-tests will extract iasl executable
from CONFIG_IASL define.
Signed-off-by: Marcel Apfelbaum
Signed-off-by: Michael S. Tsirkin
---
scripts/create_config | 4
1 file changed, 4 insertions(+)
diff --git a/scripts/create_config b/scripts/create_config
index
From: Marcel Apfelbaum
When running the test with TEST_ACPI_REBUILD_AML=y environment
variable, the test will rebuild and validate the expected aml
files.
Signed-off-by: Marcel Apfelbaum
Signed-off-by: Michael S. Tsirkin
---
tests/acpi-test.c | 30 +-
1 file change
From: Marcel Apfelbaum
Acpi unit-test will fail every time the acpi tables change.
This script rebuild the expected aml files, so the test
will pass. It also validates the modifications.
Signed-off-by: Marcel Apfelbaum
Signed-off-by: Michael S. Tsirkin
---
tests/acpi-test-data/rebuild-expecte
From: "Gabriel L. Somlo"
AppleSMC (-device isa-applesmc) is required to boot OS X guests.
OS X expects a SMC node to be present in the ACPI DSDT. This patch
adds a SMC node to the DSDT, and dynamically patches the return value
of SMC._STA to either 0x0B if the chip is present, or otherwise to 0x0
1 - 100 of 114 matches
Mail list logo