84 questions
0
votes
1
answer
80
views
How to write userspace or kernel application that would allow me to generate a lot of asynchronous interrupts on x86_64 Linux?
I am studying a performance (progress guarantee?) problem of an x86 hypervisor software. The current hypothesis is like this. There is a high intensity of interrupt requests caused by concurrently ...
0
votes
0
answers
41
views
Why does`LAPIC_SVR`, `LAPIC_TDCR`, `LAPIC_TICR`, `LAPIC_TCCR`, address value is zero even after write?
I am trying to enable periodic APIC Timer in x86 architecture based 64 bit OS.
void apic_timer_init(uint32_t frequency) {
disable_interrupts();
// Ensure APIC is enabled (set Spurious ...
0
votes
1
answer
98
views
x86: Interrupt when IF flag = 0. Where is this interrupt "held for later"?
Over here, several answers say some variant of:
when a second hardware interrupt occurs while an initial one is being serviced, that interrupt will be put on hold until the first one has finished.
...
1
vote
1
answer
438
views
VMX virtual apic interrupt
How to send external interrupts to guest when following enabled:
Use TPR shadow
Virtualize APIC access
APIC register virtualization
Virtual-interrupt delivery
Acknowledge external interrupts
External ...
0
votes
1
answer
160
views
Removing hyphens in form data in DataPower gateway
we are trying to pass a file in form data but we are unable to remove the hyphens, Content-Disposition and Content-Type.
----------------------------376203720009485735911622
Content-Disposition: form-...
0
votes
1
answer
466
views
streaming pdf files in datapower gateway
i want to download a pdf which is present in datapower local directory
i created a serice and wrote a small gateway script but the pdf in downloading in unreadable format
i want the pdf to be ...
0
votes
1
answer
723
views
I want to read a file which is in datapower through api gateway v10
I'm using url-open() function but I'm getting an empty response.
0
votes
1
answer
199
views
Product Subscription in API Connect v2018
How can I check that how many applications have subscribed to a product in a catalog ?
One way is to check the subscription of all application in that catalog however in my case there are so many ...
1
vote
0
answers
301
views
Reducing Timer Softirq and local interrupts
I would like to know what exactly are the TIMER softirqs in /proc/softirqs are doing, so I can reduce their frequency. I believe the local timer interrupts generated by the local APIC give rise to ...
0
votes
1
answer
657
views
Intel IO APIC "Established APIC Programming Model"
I was reading the Intel Atom® processor Z8000 series: Datasheet, vol. 1. Can be found here https://cdrdv2.intel.com/v1/dl/getContent/332065.
For the IO APIC section, it states the IO APIC features an &...
4
votes
0
answers
359
views
Documentation on MSI Address/Data register content expectations for AMD cpus?
Where I can find info on AMD Ryzen CPUs and how they expect MSI address/data to be programmed? The Intel manual is crystal clear in its description (pictured below) but MSI Address/Data registers are ...
0
votes
1
answer
252
views
How can a 32-bit APIC ID fit inside 4 bits out of an 8-bit IOAPIC destination field?
Reading both the OSDev Wiki article and the Intel documentation about the two different available APIC types that said article links to left me with more questions than answers, specifically when it ...
0
votes
1
answer
692
views
XSLT in API connect version 10 Reserved instance
I am new to API connect development, trying to code a XSLT in API connect reserved instance version 10. I have sample input and XSLT, but getting error while doing the same.
Request: Below is the ...
1
vote
1
answer
243
views
Can SIPI be sent from a BSP running in long mode?
Currently I have an multi-processing operating system running in x86 protected mode, and I want to make it run in x86_64 long mode. Its current logic to wake up APs is by sending SIPI-INIT-INIT:
// ...
1
vote
0
answers
148
views
Migration Process In API Connect v5 to v10
We had CP4I Platform & We want to migrate v5 to v10 in cp4i. So anyone can help or share link how we can implement migration process in cp4i.
1
vote
1
answer
577
views
Adding Two Versions of Same API to Product in APIC
I am using IBM API Connect v5. We have an API with two different versions, 1.0.0 and 2.0.0. We have both APIs inside a single Product. From APIMgr we are able to stage and deploy the Product to ...
5
votes
1
answer
4k
views
How does MSI-X triggers interrupt handlers? Is there a need to poll the chosen memory address?
I have a small kernel which is booted with UEFI. I'm using QEMU for virtualization. I want to write a xHCI driver to support USB keyboards in my kernel. I'm having trouble to find concise and clear ...
0
votes
1
answer
699
views
Javascript dot notation to retrieve certain element on an object
On IBM API Connect's GatewayScript, I'm trying to write a JS script to get object value from the following request payload:
{"number": "1234",
"type": "type1",
&...
-1
votes
1
answer
1k
views
QEMU how-to allocate specific IRQ number for PCI device?
I'm running qemu-system-x86_64 with my new pci device. And i want to use IRQ 17 (Since driver from kernel listen for IRQ 17). But my PCI device take IRQ 10 or 11. base on interrupt_pin(A,B,C,E).
Then ...
1
vote
1
answer
418
views
How can I read and write to the IMCR register?
I'm currently programming an x86-64 kernel and need to set the APIC mode to symmetric I/O Mode. The Multiprocessor Specification from Intel at Page 31 says that to enable this mode you have to write ...
2
votes
0
answers
68
views
Cannot use call instruction with a name of a function when running on a different core
I recently started writing a native hypervisor, and in order to support a multicore system, I must initialize the hypervisor on all cores.
Using Intel's x2APIC, I am sending a SIPI interrupt from the ...
0
votes
0
answers
270
views
How to handle external API tokens after logout
This is a higher level conceptual question. I use token authentication on my django - react app and I handle the token by saving, retrieving it, and removing it from local storage as necessary. The ...
-2
votes
2
answers
1k
views
Why I can't change the administrative state of a port on cisco apic via rest API
When I try to change the administrative state of a port on the Cisco APIC via rest API (aci_rest) then I'm getting the following error :
"msg": "APIC Error 170: Invalid access, MO: ...
-1
votes
3
answers
2k
views
Cryptographic key to JSON Web Key using javascript
I am a newbie in JavaScript or GatewayScript. I have a requirement where I need to convert the content of a .pem (which is in DataPower under local:///cert or can be added into a crypto object) to JWK....
1
vote
0
answers
87
views
Empty namespace being skipped while mapping JSON to an XML SOAP webservice in IBM APIConnect
We have a requirement to map the incoming JSON request into a SOAP XML request to invoke back-end web-service.
The schema definition of the XML request has the namespace configured as given below:
...
-1
votes
1
answer
308
views
cobra.mit.request.QueryError: Unable to process the query, result dataset is too big
I try to run a Python Cobra SDK script to do a query in Cisco ACI APIC database for class l1PhysIf to obtain a port inventory. The code seems to be ok, but when I execute code I get error:
cobra.mit....
3
votes
1
answer
3k
views
Does AMD support x2APIC?
I'm a learner of OS, and trying to write a kernel.
I googled for "AMD x2APIC" and found out some of the information about EPYC 7002 series seems like to support it.
But I cannot find the relative ...
3
votes
1
answer
130
views
Accessing another processor's local APIC
The documentation for the Intel 64 and IA-32 says that the local APIC's register space can be remapped to other physical address.
My question is, is it possible to access other processor's local APIC ...
1
vote
0
answers
177
views
What is the difference between initial_apicid and apicid in cpuinfo_x86 struct?
What is the difference between initial_apicid and apicid in struct cpuinfo_x86?
I just saw that in case x2apic is not enable those fields may not contain the same value but is not written any else.
0
votes
1
answer
814
views
Minimalistic Linux Kernel not compiling
I want to compile an own minimalistic Linux Kernel with make tinyconfig and after doing all steps (like here:)
I get this error message:
arch/x86/kernel/apic/apic.c:2282:6: error: redefinition of ‘...
0
votes
1
answer
908
views
Using Redact Policy in API Connect 2018
I have the below message from where I want to remove the field "Status Code"
{
"Details": {
"UT_LL": 22235,
"UT_ZZ": 512,
"Status Code": 206,
"UT_DATE": "2019-10-...
0
votes
1
answer
2k
views
How does x86 assigns interrupt number for PCI device in Linux?
My understanding is BIOS or EFI detects the hardware during bootup and determines interrupt number, then passes it to Linux once kernel is up and running. And based on my research the lower the ...
5
votes
1
answer
4k
views
Question about Message Signaled Interrupts (MSI) on x86 LAPIC system
Hi I'm writing a kernel and plan to use MSI interrupt for PCI devices.
However, I'm also quite confused by the documentations.
My understanding about MSI are as follow:
From PCI device point of ...
0
votes
1
answer
2k
views
How to figure out the interrupt source on I/O APIC?
I understand that I/O APIC chip has 24 PINs, usually single chip system will map PIN 0~23 IRQ 32~55 respectively. Furthermore I could edit the related RTEs to allocate interrupt handler functions.
...
4
votes
1
answer
3k
views
Questions about APIC interrupt
I'm following a book to write a linux like kernel, however, met problems with the APIC chapter.
Before everything, I'll list my platform. I'm on Windows 10, using Virtual Box to run Ubuntu 18.04, and ...
0
votes
2
answers
553
views
Python read MP3 cover file
I am trying to read the cover from an MP3 file with the following code.
import tkinter as tk
from PIL import Image, ImageTk
from io import BytesIO
import mutagen
from mutagen.id3 import APIC
root = ...
0
votes
0
answers
786
views
How to register an interrupt handler for x2APIC generated IPI?
I have enabled the x2APIC on the host OS and want to generate the IPI at the host level itself(and not inside a VM).
To check if x2APIC is enabled or not, I run the following command:
sudo rdmsr ...
1
vote
1
answer
890
views
How to read/write LAPIC Registers from Kernel Module?
I'm trying to disable all Interrupts. Most of them are easy, but I have problems with the Non-Maskable Interrupts (NMIs).
To disable them, I want to manipulate the LVT Registers in the Local APIC.
...
0
votes
1
answer
429
views
IBM Cloud API Connect Secure Gateway
Recently, I started seeing an issue when trying to setup secure gateway within API Connect on IBM Cloud, I previously had it working but looks like they changed this wizard interface and its broken ...
2
votes
1
answer
602
views
Failed to read APIC timer registers
I am writing a Linux kernel module to read dump local APIC timer registers.
I am using Ubuntu 16.04 desktop on X86_64 platform.
X2APIC is disabled, and nohz=off in grub.cfg.
I am using following ...
4
votes
0
answers
1k
views
Linux core ids are missing in cpu info
I've a issue with am machine I'm running some paralell calculations on.
Until now I assumed that core ids need to be sequentially. But on this machine I have:
lscpu
I get the following Output for:
...
0
votes
1
answer
97
views
#GP on some ISRs, APIC and PIT not sending IRQs
I've been working on code to test the speed of the APIC using the PIT. There are several problems I can't figure out. First, when testing my ISRs for the two timers, I get general protection faults on ...
0
votes
3
answers
643
views
Disable one time use on refresh tokens in Datapower/API Connect [OAuth2]?
We have an OAuth/OIDC service developed in API Connect/Datapower.
When a user requests a new refresh_token - if any unexpected error occurs in the flow, the new refresh_token is not issued, and their ...
0
votes
1
answer
561
views
APIC 2018.3.7 OVA: The Assembly part of API is not being deployed - has reverted to a much earlier version?
As of yesterday, when I publish the (current) Product and its API, the deployed Assembly is not updated and what is running is from an earlier state - most likely from early December. The APIC domain ...
1
vote
1
answer
807
views
Facing issue in publishing product in API Connect CLI
While executing
apic products publish climb-on.yaml --server mgmnthost.com --org climbon --catalog sandbox
i am getting
You do not have sufficient permissions to perform this operation.
I ...
0
votes
1
answer
1k
views
Importing an existing swagger to IBM API Connect and adding it to a product from CLI
I am working on publishing an existing swagger through API Connect. For that, i need to import an existing yaml file (Draft), available in my local folder, and add it to an existing product. However, ...
0
votes
1
answer
1k
views
Unable to login to api connect through Node.js cli, though have access to API Connect portal
I am unable to login to APIConnect through command line, though i am able to successfully login to IBM API Connect portal (Signed-up on IBM Bluemix).
Below are the s/w versions i am using:
Windows ...
0
votes
1
answer
1k
views
APIC 2018: How do I read the XML response from an Invoke policy, in a gateway script
I want to read a specific value in the XML returned by the APIC Invoke policy (from a SOAP service), in a gateway script.
I have searched high and low. I have tried this and that from my searches. ...
3
votes
2
answers
13k
views
What do boot option `noapic` and `noacpi` actually do?
I had issues booting Ubuntu on a machine and adding noapic and noacpi options to kernel command line solved the issue.
I am aware of noapic is to disable interrupt remap and noacpi is related to power ...
1
vote
3
answers
4k
views
Accessing IBM API Connect endpoint through Postman
I just created an REST API in API Connect and the endpoint works when I test it in the APIC assemble tab. It requires a client id and client secret. When I send a request through Postman, I ...