On 19 April 2011 21:36, Blue Swirl wrote:
> Sorry, I just picked a define without much thought. A more specific
> one would be flags parameter of epoll_create1(), like EPOLL_CLOEXEC or
> EPOLL_NONBLOCK. We don't use them now since the target system call
> argument is passed untranslated to host, b
On Tue, Apr 19, 2011 at 05:02:21PM +0200, Alexander Graf wrote:
> On 04/19/2011 02:44 PM, David Gibson wrote:
> >On Tue, Apr 19, 2011 at 09:38:58AM +0200, Alexander Graf wrote:
> >>On 19.04.2011, at 03:54, David Gibson wrote:
> >>
> >>>From: Anton Blanchard
> >>>
> >>>The original pSeries machine w
inject-nmi command injects an NMI on all CPUs of guest.
It is only supported for x86 guest currently, it will
returns "Unsupported" error for non-x86 guest.
Signed-off-by: Lai Jiangshan
---
qapi-schema.json | 12
qmp.c| 17 +
2 files changed, 29 ins
Convert the name of HMP nmi to inject-nmi, and use QMP inject-nmi.
The behavier is also changed, it injects NMI to all CPUs of the guest.
When the guest is non-x86, it reports "Unsupported" error.
Signed-off-by: Lai Jiangshan
---
hmp-commands.hx | 18 --
hmp.c | 12
New QERR_UNSUPPORTED for unsupported commands or requests.
Signed-off-by: Lai Jiangshan
---
qerror.c |4
qerror.h |3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/qerror.c b/qerror.c
index c76257f..bafe520 100644
--- a/qerror.c
+++ b/qerror.c
@@ -213,6 +213,1
These patches are applied for "http://repo.or.cz/r/qemu/aliguori.git glib".
These patches add QAPI inject-nmi. They are passed checkpatch.pl and the build.
But the result qemu executable file is not tested, because the result
qemu of "http://repo.or.cz/r/qemu/aliguori.git glib" can't work in my
On 04/04/2011 09:09 PM, Anthony Liguori wrote:
> On 04/04/2011 07:19 AM, Markus Armbruster wrote:
>> [Note cc: Anthony]
>>
>> "Daniel P. Berrange" writes:
>>
>>> On Mon, Mar 07, 2011 at 05:46:28PM +0800, Lai Jiangshan wrote:
From: Lai Jiangshan
Date: Mon, 7 Mar 2011 17:05:15 +0800
S
On 04/20/2011 09:53 AM, Lai Jiangshan wrote:
> On 04/04/2011 09:09 PM, Anthony Liguori wrote:
>> On 04/04/2011 07:19 AM, Markus Armbruster wrote:
>>> [Note cc: Anthony]
>>>
>>> "Daniel P. Berrange" writes:
>>>
On Mon, Mar 07, 2011 at 05:46:28PM +0800, Lai Jiangshan wrote:
> From: Lai Jian
Hi. I'm want to run some pthread programs using qemu userspace emulation
(target=i386, host=x86_64,arm), but see NPTL support isn't supported for the
i386 target. I have applied a patch from here
http://patchwork.ozlabs.org/patch/45206/ and used it to run a simple pthread
fork, join program. The pr
Already changed to Grsecutiry -> Security level -> Virtualization
But issue still here:
qemu-kvm starts, show as running, but nothing inside:
(qemu) info kvm
kvm support: enabled
(qemu) info cpus
* CPU #0: pc=0x0010017c (halted) thread_id=4688
(qemu) info pci
Bus 0, device 0, functi
On 04/20/2011 12:33 AM, Richard Henderson wrote:
> Did you try --enable-user-pie? It may not really help, but I'm curious.
No. I don't think it will help because placement of the executable probably
doesn't account for how large its heap will grow.
You'll still run out of memory as the heap gro
Hello friend,
Would you like to join in a program with which,
- You do not have to promote
- You do not need a computer or Internet experience
- You do not have to worry about spam complaints
- You do not have to pay a Monthly Fee
-You do not have to pay full price on Vacation ever again
-You
On Tuesday, April 19, 2011 01:32:59 pm Alex Williamson wrote:
> When using VFIO to assign a device to a guest, we want to make sure
> the device is quiesced on VM reset to stop all DMA within the guest
> mapped memory. Add an ioctl which just calls pci_reset_function()
> and returns whether it suc
* Alex Williamson (alex.william...@redhat.com) wrote:
> On Tue, 2011-04-19 at 15:26 -0700, Chris Wright wrote:
> > * Alex Williamson (alex.william...@redhat.com) wrote:
> > > On Tue, 2011-04-19 at 15:07 -0700, Chris Wright wrote:
> > > > * Alex Williamson (alex.william...@redhat.com) wrote:
> > > >
On Tue, 2011-04-19 at 15:26 -0700, Chris Wright wrote:
> * Alex Williamson (alex.william...@redhat.com) wrote:
> > On Tue, 2011-04-19 at 15:07 -0700, Chris Wright wrote:
> > > * Alex Williamson (alex.william...@redhat.com) wrote:
> > > > When using VFIO to assign a device to a guest, we want to mak
* Alex Williamson (alex.william...@redhat.com) wrote:
> On Tue, 2011-04-19 at 15:07 -0700, Chris Wright wrote:
> > * Alex Williamson (alex.william...@redhat.com) wrote:
> > > When using VFIO to assign a device to a guest, we want to make sure
> > > the device is quiesced on VM reset to stop all DMA
On Tue, 2011-04-19 at 15:07 -0700, Chris Wright wrote:
> * Alex Williamson (alex.william...@redhat.com) wrote:
> > When using VFIO to assign a device to a guest, we want to make sure
> > the device is quiesced on VM reset to stop all DMA within the guest
> > mapped memory. Add an ioctl which just
* Alex Williamson (alex.william...@redhat.com) wrote:
> When using VFIO to assign a device to a guest, we want to make sure
> the device is quiesced on VM reset to stop all DMA within the guest
> mapped memory. Add an ioctl which just calls pci_reset_function()
> and returns whether it succeeds.
* Randy Dunlap (rdun...@xenotime.net) wrote:
> I can't find include/linux/vfio.h in linux-next or mainline git, but
> ioctls need to be documented in Documentation/ioctl/ioctl-number.txt
It is in the full patchset: https://github.com/pugs/vfio-linux-2.6
On Tue, 19 Apr 2011 14:32:59 -0600 Alex Williamson wrote:
> When using VFIO to assign a device to a guest, we want to make sure
> the device is quiesced on VM reset to stop all DMA within the guest
> mapped memory. Add an ioctl which just calls pci_reset_function()
> and returns whether it succee
On Tue, Apr 19, 2011 at 11:16 PM, Peter Maydell
wrote:
> On 19 April 2011 20:59, Blue Swirl wrote:
>> On Tue, Apr 19, 2011 at 10:48 PM, Peter Maydell
>> wrote:
>>> On 19 April 2011 20:37, Blue Swirl wrote:
But then epoll would not be used.
>>>
>>> I think that's fine -- on a system which i
When using VFIO to assign a device to a guest, we want to make sure
the device is quiesced on VM reset to stop all DMA within the guest
mapped memory. Add an ioctl which just calls pci_reset_function()
and returns whether it succeeds.
Signed-off-by: Alex Williamson
---
We've recently needed to
On 19 April 2011 20:59, Blue Swirl wrote:
> On Tue, Apr 19, 2011 at 10:48 PM, Peter Maydell
> wrote:
>> On 19 April 2011 20:37, Blue Swirl wrote:
>>> But then epoll would not be used.
>>
>> I think that's fine -- on a system which isn't advertising epoll
>> in its include files we shouldn't be t
On Tue, Apr 19, 2011 at 10:48 PM, Peter Maydell
wrote:
> On 19 April 2011 20:37, Blue Swirl wrote:
>> On Tue, Apr 19, 2011 at 11:57 AM, Peter Maydell
>> wrote:
>>> Work around a SPARC glibc bug which caused the epoll_create1 configure
>>> test to wrongly claim that the function was present. Some
On 19 April 2011 20:37, Blue Swirl wrote:
> On Tue, Apr 19, 2011 at 11:57 AM, Peter Maydell
> wrote:
>> Work around a SPARC glibc bug which caused the epoll_create1 configure
>> test to wrongly claim that the function was present. Some versions of
>> SPARC glibc provided the function in the libra
On Tue, Apr 19, 2011 at 11:57 AM, Peter Maydell
wrote:
> Work around a SPARC glibc bug which caused the epoll_create1 configure
> test to wrongly claim that the function was present. Some versions of
> SPARC glibc provided the function in the library but didn't declare
> it in the include file; th
2011/4/17 Антон Кочков :
> Good day!
> I'm trying to make working qemu-kvm with hardened gentoo on hardened kernel.
> When i'm using CONFIG_PAX_KERNPAGEXEC and CONFIG_PAX_MEM_UNDEREF qemu just
> start
> and go to infinite loop and take 100% of one of my CPU core. adn it
> even can't be killed.
> A
On 18 April 2011 22:00, Aurelien Jarno wrote:
> With softfloat it's not possible to play with the overflow of an
> unsigned value to get the 0 case partially correct. Use a special case
> for that. Using a division to generate an infinity is the easiest way
> that works for both softfloat and soft
On 18 April 2011 22:00, Aurelien Jarno wrote:
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
-- PMM
On 18 April 2011 22:00, Aurelien Jarno wrote:
> +#include
Why does this patch need this? I couldn't see anywhere where
the patch added calls to math functions we weren't calling before,
or did I miss one?
> void helper_fptan(void)
> {
> - CPU86_LDouble fptemp;
> + double fptemp = CPU86_
On 18 April 2011 22:00, Aurelien Jarno wrote:
> Add functions to convert CPU86_LDouble to double and vice versa. They
> are going to be used to implement logarithmic and trigonometric function
> until softfloat implement them.
>
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
-- PMM
On 18 April 2011 22:00, Aurelien Jarno wrote:
> diff --git a/configure b/configure
> index da2da04..6e445b4 100755
> --- a/configure
> +++ b/configure
> @@ -3276,9 +3276,6 @@ if test ! -z "$gdb_xml_files" ; then
> fi
>
> case "$target_arch2" in
> - i386|x86_64)
> - echo "CONFIG_NOSOFTFLOAT=y
On 18 April 2011 22:00, Aurelien Jarno wrote:
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
-- PMM
On 18 April 2011 22:00, Aurelien Jarno wrote:
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
-- PMM
On 18 April 2011 22:00, Aurelien Jarno wrote:
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
-- PMM
On 18 April 2011 22:00, Aurelien Jarno wrote:
> +++ b/target-i386/op_helper.c
> @@ -3440,9 +3440,10 @@ static void fpu_set_exception(int mask)
>
> static inline CPU86_LDouble helper_fdiv(CPU86_LDouble a, CPU86_LDouble b)
> {
> - if (b == 0.0)
> + if (floatx_is_zero(b)) {
> fpu_set_
On 18 April 2011 22:00, Aurelien Jarno wrote:
> Signed-off-by: Aurelien Jarno
> ---
> target-i386/op_helper.c | 7 ---
> 1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c
> index f614893..737 100644
> --- a/target-i386/
On 18 April 2011 22:00, Aurelien Jarno wrote:
> Use the scalbn softfloat function to implement helper_fscale(). This
> fixes corner cases (e.g. NaN) and makes a few more GNU libc math tests
> to pass.
>
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
-- PMM
When we catch the special case of an input NaN in ARM float to int
helper functions, set the Invalid flag as well as returning the
correct result.
Signed-off-by: Peter Maydell
---
target-arm/helper.c |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/target-arm/help
On 19 April 2011 16:48, Riku Voipio wrote:
> On Tue, Apr 19, 2011 at 06:19:49PM +0900, Mike McCormack wrote:
>> * modifying do_brk to not use MAP_FIXED - causes an out of memory
>> failure rather than a crash
>
> Have you tried the patch posted by Peter Maydell yesterday:
>
> http://www.mail-
Don't bother including executive and supervisor modes.
Signed-off-by: Richard Henderson
---
target-alpha/cpu.h | 36
1 files changed, 28 insertions(+), 8 deletions(-)
diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h
index e977705..4737b83 100644
--- a/
Signed-off-by: Richard Henderson
---
.gitmodules |3 +++
Makefile |3 ++-
configure |2 +-
pc-bios/palcode-sx164 | Bin 0 -> 107621 bytes
roms/qemu-palcode |1 +
5 files changed, 7 insertions(+), 2 deletions(-)
create mode 100644 pc-bios/pa
Changes from v1 to v2:
- Split patch 5 up into little pieces. These pieces were compile
tested by applying patch 23 (Enable alpha-softmmu) out of sequence
so that both softmmu and linux-user targets were built. But in
the end I chickened out and re-ordered the enable patch to last.
Signed-off-by: Richard Henderson
---
exec-all.h |2 +-
exec.c | 12 ++--
target-alpha/cpu.h |6 +-
target-alpha/op_helper.c | 39 ++-
4 files changed, 50 insertions(+), 9 deletions(-)
diff --git a/e
Signed-off-by: Richard Henderson
---
target-alpha/cpu.h |1 +
target-alpha/helper.c| 37 -
target-alpha/op_helper.c |5 -
3 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h
index dec8b
This code does not work, and will be replaced by a bios image.
Signed-off-by: Richard Henderson
---
Makefile.target |2 +-
hw/alpha_palcode.c | 1048 --
target-alpha/cpu.h | 35 --
target-alpha/helper.c|2 +-
target-a
Delete all the code that tried to emulate the real IPRs of some
unnamed CPU. Replace those with just 3 slots that we can use to
communicate trap information between the helper functions that
signal exceptions and the OS trap handler.
Signed-off-by: Richard Henderson
---
linux-user/main.c
The QEMU emulation PALcode will use EV6 PALcode insns regardless
of the "real" cpu instruction set being emulated.
Signed-off-by: Richard Henderson
---
alpha-dis.c |4
dis-asm.h |3 +++
disas.c |2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/alpha-dis
Signed-off-by: Richard Henderson
---
cpu-common.h |7 +++
exec.c | 12 ++--
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/cpu-common.h b/cpu-common.h
index 96c02ae..e17020b 100644
--- a/cpu-common.h
+++ b/cpu-common.h
@@ -45,6 +45,13 @@ static inline void
All of the "raw" memory accesses should be "phys" instead. Fix
some confusion about argument ordering of the store routines.
Fix the implementation of store-conditional.
Delete the "alt-mode" helpers. Because we only implement two
mmu modes, let /a imply user-mode unconditionally.
For the momen
Interrupts are disabled in PALmode, and when the PS IL is
high enough. We don't actually get the interrupt levels
correct yet; settle for interrupts enabled only at IL0.
Signed-off-by: Richard Henderson
---
cpu-exec.c | 16 +---
target-alpha/exec.h |7 ++-
2 files
Compiles, but no machine defined yet, so this will crash on startup.
Signed-off-by: Richard Henderson
---
Makefile.target |3 +-
configure |1 +
default-configs/alpha-softmmu.mak |9
target-alpha/machine.c| 87 +
Signed-off-by: Richard Henderson
---
target-alpha/helper.c | 115
1 files changed, 105 insertions(+), 10 deletions(-)
diff --git a/target-alpha/helper.c b/target-alpha/helper.c
index c5479fd..d5923e0 100644
--- a/target-alpha/helper.c
+++ b/targe
On Tue, Apr 19, 2011 at 06:19:49PM +0900, Mike McCormack wrote:
> * modifying do_brk to not use MAP_FIXED - causes an out of memory
>failure rather than a crash
Have you tried the patch posted by Peter Maydell yesterday:
http://www.mail-archive.com/qemu-devel@nongnu.org/msg61733.html
Riku
This is, more or less, the read accessor to pci_bus_set_mem_base
as a write accessor. It will be needed for implementing sparse
memory spaces for Alpha.
Signed-off-by: Richard Henderson
---
hw/pci.c |3 +--
hw/pci.h |1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw
The EXC_M_* constants were being set for the EV6, not as set for
the Unix kernel entry point.
Use PS_USER_MODE instead of hard-coding access to the PS register.
Signed-off-by: Richard Henderson
---
target-alpha/cpu.h | 56 +++--
target-alpha/trans
We had two different methods in use, both of which referenced ENV,
and neither of which indicated to the generic code when different
compilation modes are not compatible.
Signed-off-by: Richard Henderson
---
target-alpha/cpu.h | 32 -
target-alpha/translate.c | 396 +
Hi all,
I want to make a new support of arm board "TH68" of THOMSON TELECOM
in QEMU. This board have a microprocessor called "PNX8019". So I made
some simulations of the functional blocs.
But I don't know how to test the code in QEMU. Is there anyone have
any experience or any exampl
Signed-off-by: Richard Henderson
---
Makefile.target |1 +
hw/alpha_pci.c | 327 +
hw/alpha_pyxis.c | 1057 ++
hw/alpha_sx164.c | 195 ++
hw/alpha_sys.h | 41 +++
5 files changed, 1621 insertions(+), 0 deleti
Signed-off-by: Richard Henderson
---
target-alpha/translate.c | 16 +---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 7c90ad9..c8ef31d 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@
Reads the page table how PALcode would, except that the virtual
page table base register is not used.
Signed-off-by: Richard Henderson
---
target-alpha/cpu.h| 12 +
target-alpha/helper.c | 129 +++--
2 files changed, 137 insertions(+), 4 del
These aren't actually used yet, but we can at least access
them via the HW_MFPR and HW_MTPR instructions.
Signed-off-by: Richard Henderson
---
target-alpha/cpu.h | 13 +++
target-alpha/translate.c | 87 -
2 files changed, 98 insertions(+)
In particular, SWPIPL is used quite a lot by the Linux kernel.
Doing this inline makes it significantly easier to step through
without the debugger getting confused by the mode switch.
Signed-off-by: Richard Henderson
---
target-alpha/translate.c | 141 --
There's no need to attempt to match EXCP_* values with PALcode entry
point offsets. Instead, compress all the values to make for more
efficient switch statements within QEMU.
We will be doing TLB fill within QEMU proper, not within the PALcode,
so all of the ITB/DTB miss, double fault, and access
Expose these via MTPR, more or less like the real HW does.
Signed-off-by: Richard Henderson
---
target-alpha/helper.h|3 +++
target-alpha/op_helper.c | 11 ++-
target-alpha/translate.c | 32 +---
3 files changed, 34 insertions(+), 12 deletions(-)
Introduce and use arith_excp, filling in the trap_arg[01] IPRs.
Signed-off-by: Richard Henderson
---
target-alpha/op_helper.c | 34 +-
1 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c
index bbf8
Signed-off-by: Richard Henderson
---
target-alpha/op_helper.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c
index cc8a33d..5902cd6 100644
--- a/target-alpha/op_helper.c
+++ b/target-alpha/op_helper.c
@@ -44,7 +44,8 @
On 04/19/2011 02:19 AM, Mike McCormack wrote:
> This is the only way I know to get qemu 0.14.0 to work reliably
> with Scratchbox 2 (libsb2.so)
>
> The problem stems from two things:
>
> * The shared object loader is permitted to load LD_PRELOAD objects
>below the QEMU load address (0x60
Newer kernels are large enough that they can overlap the address
where qemu places the initrd. Move the initrd up so that there is
enough space for the kernel again.
Unfortunately it's not possible to automatically determine the
size of the kernel if it is compressed, so this is the best we
can do
On 04/19/2011 02:44 PM, David Gibson wrote:
On Tue, Apr 19, 2011 at 09:38:58AM +0200, Alexander Graf wrote:
On 19.04.2011, at 03:54, David Gibson wrote:
From: Anton Blanchard
The original pSeries machine was limited to 32 CPUs, more or less
arbitrarily. Particularly when we get SMT KVM guest
Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation.
Implemented:
- IRQs
- GPIO
- PPC
- RTC
- UARTs (no IrDA/etc.)
- OST reused from pxa25x
Everything else is TODO (esp. PM/idle/sleep!) - see the todo in the
hw/strongarm.c
V6:
* license fixup
* DPRINTF
V5:
* syntax fixu
Add very basic implementation of collie PDA emulation. The system lacks
LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting
rootfs (theoretically it can be provided in pflash images).
Signed-off-by: Dmitry Eremin-Solenikov
---
Makefile.target |1 +
hw/collie.c | 69 +
I'll take a look at libpcap and update the thread. Thanks, Avi.
Dai
On Sun, Apr 17, 2011 at 5:36 AM, Avi Kivity wrote:
> On 04/14/2011 11:04 PM, Daisuke Nojiri wrote:
>
>> Hi, Avi,
>>
>> Complex and complete firewalling is probably out of my focus for now. I'm
>> trying to introduce a simple re
On 4/18/11, Aurelien Jarno wrote:
> On Thu, Apr 14, 2011 at 10:18:02AM +0400, Dmitry Eremin-Solenikov wrote:
>> Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation.
>> Implemented:
>> - IRQs
>> - GPIO
>> - PPC
>> - RTC
>> - UARTs (no IrDA/etc.)
>> - OST reused from pxa25x
>>
>>
On Tue, Apr 19, 2011 at 09:38:58AM +0200, Alexander Graf wrote:
>
> On 19.04.2011, at 03:54, David Gibson wrote:
>
> > From: Anton Blanchard
> >
> > The original pSeries machine was limited to 32 CPUs, more or less
> > arbitrarily. Particularly when we get SMT KVM guests it will be
> > pretty
On Tue, Apr 19, 2011 at 2:29 PM, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini
> ---
> scripts/tracetool | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Acked-by: Stefan Hajnoczi
I have merged it into my tracing tree and will send a pull request this week.
Stefan
Antonio Galindo Castro wrote:
>Tools for resource accounting the virtual machines.
This was the only topic for today call. Moving item to next week
agenda. It appears that it is Eastern all around and not everybody able
to attend.
Have a nice day, Juan.
Am 19.04.2011 15:18, schrieb Amit Shah:
> On (Tue) 19 Apr 2011 [14:36:43], Kevin Wolf wrote:
>
>> diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
>> index 032d1b0..88e7791 100644
>> --- a/hw/ide/atapi.c
>> +++ b/hw/ide/atapi.c
>> @@ -813,11 +813,7 @@ error_cmd:
>>
>> static void cmd_test_unit_read
Am 19.04.2011 15:20, schrieb Amit Shah:
> On (Tue) 19 Apr 2011 [14:36:41], Kevin Wolf wrote:
>
>> +struct {
>> +void (*handler)(IDEState *s, uint8_t *buf);
>> +int flags;
>> +} atapi_cmd_table[0x100] = {
>> +[ 0x00 ] = { cmd_test_unit_ready, 0 },
>> +[ 0x03 ] = { cmd_
Signed-off-by: Paolo Bonzini
---
scripts/tracetool |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/tracetool b/scripts/tracetool
index 412f695..9912f36 100755
--- a/scripts/tracetool
+++ b/scripts/tracetool
@@ -51,7 +51,7 @@ get_args()
{
local args
arg
On Tue, Apr 19, 2011 at 02:33:46PM +0200, Juan Quintela wrote:
> Isaku Yamahata wrote:
> >> shouldn't last one still be uint16_t?
> >
> > It results in an error by type_check_pointer.
>
> You are right. We are just lying. Will think about how to fix this
> properly (basically move the whole thi
On (Tue) 19 Apr 2011 [14:36:38], Kevin Wolf wrote:
> Not marking this as an RFC because I want to commit itif everyone is happy
> with it. Otherwise please treat it like an RFC. I don't mind too much if you
> think we shouldn't do this, it's just an option for which I wanted to try
> what it would
On (Tue) 19 Apr 2011 [14:36:41], Kevin Wolf wrote:
> +struct {
> +void (*handler)(IDEState *s, uint8_t *buf);
> +int flags;
> +} atapi_cmd_table[0x100] = {
> +[ 0x00 ] = { cmd_test_unit_ready, 0 },
> +[ 0x03 ] = { cmd_request_sense, ALLOW_UA },
> +
On (Tue) 19 Apr 2011 [14:36:43], Kevin Wolf wrote:
> diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
> index 032d1b0..88e7791 100644
> --- a/hw/ide/atapi.c
> +++ b/hw/ide/atapi.c
> @@ -813,11 +813,7 @@ error_cmd:
>
> static void cmd_test_unit_ready(IDEState *s, uint8_t *buf)
> {
> -if (bdrv_i
On 18 April 2011 22:00, Aurelien Jarno wrote:
> @@ -511,4 +530,11 @@ int floatx80_is_quiet_nan( floatx80 a1 )
> return ( ( u.i.high & 0x7FFF ) == 0x7FFF ) && (uint64_t) ( u.i.low<<1 );
> }
>
> +int floatx80_is_any_nan( floatx80 a1 )
> +{
> + floatx80u u;
> + u.f = a1;
> + return ((u
On 18 April 2011 22:00, Aurelien Jarno wrote:
> float*_scalbn() should be able to take a status parameter. Fix that.
>
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
-- PMM
Signed-off-by: Kevin Wolf
---
hw/ide/atapi.c | 837 +++-
1 files changed, 459 insertions(+), 378 deletions(-)
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 25a636e..d161bf7 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -621,11 +621,
Signed-off-by: Kevin Wolf
---
hw/ide/atapi.c | 115 +++
1 files changed, 48 insertions(+), 67 deletions(-)
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index d161bf7..e8ac764 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -533,10 +533,11
Some commands require a medium to be present in order to execute successfully.
Instead of duplicating the check in each command implementation, let's add a
flag and check it before calling the command.
This patch only converts existing checks, it does not introduce new checks for
any of the other
The disk size can only change when the medium is changed, and the change
callback takes care of updating s->nb_sectors in this case.
Signed-off-by: Kevin Wolf
---
hw/ide/atapi.c | 21 ++---
1 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/hw/ide/atapi.c b/hw/ide/
Not marking this as an RFC because I want to commit itif everyone is happy
with it. Otherwise please treat it like an RFC. I don't mind too much if you
think we shouldn't do this, it's just an option for which I wanted to try
what it would look like.
Kevin Wolf (5):
ide: Split atapi.c out
ide
Isaku Yamahata wrote:
>> shouldn't last one still be uint16_t?
>
> It results in an error by type_check_pointer.
You are right. We are just lying. Will think about how to fix this
properly (basically move the whole thing to a uint8_t array, and work
from there.
>> I guess that on ich9, GPE bec
On 18 April 2011 21:59, Aurelien Jarno wrote:
> @@ -6349,6 +6352,12 @@ float32 float32_scalbn( float32 a, int n STATUS_PARAM )
> else if ( aSig == 0 )
> return a;
>
> + if (n > 0x80) {
> + n = 0x80;
> + } else if (n < -0x80) {
> + n = -0x80;
> + }
> +
> aExp
On 18 April 2011 21:59, Aurelien Jarno wrote:
> Add floatx80_compare() and floatx80_compare_quiet() functions to match
> the softfloat-native ones.
>
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
On 18 April 2011 21:59, Aurelien Jarno wrote:
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
On 18 April 2011 21:59, Aurelien Jarno wrote:
> +#define float64_pi make_float32(0x400921fb54442d18LL)
This doesn't look quite right :-)
-- PMM
On 18 April 2011 21:59, Aurelien Jarno wrote:
> Add floatx80 constants similarly to float32 or float64.
>
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
NB: I didn't actually check you got the ln2 value right :-)
Also for x86 these constants are stored internally with a 66 bit
mant
From: Glauber Costa
We have two bits that can represent kvmclock in cpuid. They signal the
guest which msr set to use. When we tweak flags involving this value -
specially when we use "-", we have to act on both.
[Jan: factored out lookup_feature changes]
Signed-off-by: Jan Kiszka
---
target-i
kvmclock is represented by two feature bits. Therefore, lookup_feature
needs to continue its search even after the first match. Enhance it
accordingly and switch to a bool return type at this chance.
Signed-off-by: Jan Kiszka
---
target-i386/cpuid.c | 14 --
1 files changed, 8 inse
On 18 April 2011 21:59, Aurelien Jarno wrote:
> With floatx80, the explicit bit is set for infinity.
>
> Signed-off-by: Aurelien Jarno
Reviewed-by: Peter Maydell
-- PMM
1 - 100 of 110 matches
Mail list logo